jQuery is a lightweight cross-browser JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006 at BarCamp NYC by John Resig. Used by over 27% of the 10,000 most visited websites websites, jQuery is the most popular JavaScript library in use today
Use
jQuery usually exists as a single JavaScript file, containing all the common DOM, Event, Effects, and Ajax functions. It can be included within a web page using the following mark-up:
<script type=”text/javascript” src=”jQuery.js”></script>
Query has two styles of interaction:
via the $ function, which is a factory method for the jQuery object. These functions, often called commands, are chainable; they each return the jQuery object
via $.-prefixed functions. These are utility functions which do not work on the jQuery object per se.
For example:
$(“div.test”).add(“p.quote”).addClass(“blue”).slideDown(“slow”);
It is possible to perform browser-independent Ajax queries using $.ajax and associated methods to load and manipulate remote data.
$.ajax({
type: “POST”,
url: “some.php”,
data: “name=John&location=Boston”,
success: function(msg){
alert( “Data Saved: ” + msg );
}
});
… will request some.php from the server with parameters name=John and location=Boston and when the request is finished successfully, the success function will be called to alert the user.





2 Responses to “jQuery”
[...] = clink; … Name (required) Mail (will not be published) (required) Website …jQuery | sree.ccjQuery is a lightweight cross-browser JavaScript library that emphasizes interaction between [...]
Great Post!…
[...] I found your entry interesting thus I’ve added a Trackback to it on my weblog
[...]…