jQuery is a new kind of JavaScript Library. It is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. It was released in January 2006 at BarCamp NYC by John Resig. jQuery is free, open source software Dual-licensed under the MIT License and the GNU General Public License. Microsoft and Nokia have announced plans to bundle jQuery on their platforms, Microsoft adopting it initially within Visual Studio for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.
Now lets look at a simple hello world program in jquery. This page just contains a link, event handling for that link is written in jquery. Here comes the code.
<!DOCTYPE html> <html lang="en">
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){
$("a").mouseover(function(event){
alert("As you can see, the link no longer took you to jquery.com"); event.preventDefault();
});
$("a").click(function(event){
alert("Thank You for visiting the page");
});
});
</script>
</head>
<body>
<a href="http://pavofeathers.co.cc/">Pavo Feathers</a>
</body>
</html>
In this code you can find the script tag which carries the src attribute, that points to the jquery source on the server, that keeps up always updated.
You can find lots of links for Jquery learners. Some of my recommendations are: