Monday, 21 July 2014

Search By click

Another jQuery filter by click event Usage: Here my requirement is i need to search users by using their category(ex: music director and singer) on click As of now i don't have demo space.. Simply take a copy of this code and paste in a notepad then save as html open in browser and check <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Simple...

Simple Jquery text filter

A simple jquery filter  ..! Usage: Here my requirement is to search users by category (ex: music director and singer). By using this code we can filter users Demo <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"...

Sunday, 20 July 2014

Why $(document).ready(function(){});?

Remember the traditional method of calling $(document).ready() ? <script> $(document).ready(function(){ // Code Goes Hear }); </script> We have to use this function in the head section of our html page. This is because we do not have all our elements instantiated when the page is being compiled. After loading the complete page,  we do not need to write $(document).ready(function(){...