jQueryjQuery is a new type of Javascript library. It is not a huge, bloated, framework promising the best in AJAX - nor is just a set of needlessly complex enhancements - jQuery is designed to change the way that you write Javascript.
New: The jQuery Mailing List is now up - join and discuss!
New: The jQuery Blog has just been
opened - subscribe now!
jQuery is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jQuery acheives this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.
What does jQuery code look like? The quick and dirty:
$("p.surprise").addClass("ohmy").show("slow");
Congratulations! You just ran a snippet of jQuery code - wasn't that easy? There's lots of example code throughout the documentation, on this site - be sure to give all the code a test run, to see what happens.
The above code snippet looks for all paragraphs that have a class of 'surprise', adds the class 'ohmy' to them, then slowly reveals them. Click the 'Run' button to see it in action!
Quick Facts:
» Download jQuery (compressed) or Configure Your Download
If you're new to jQuery, we recommend that you check out the tutorial, look at some of the demos, then move on over to the documentation and start coding!
If you'd like to keep up-to-date with jQuery (and see some more code examples, then you should read the jQuery blog.
If you're feeling adventurous, you may take a peek at the full source code, or try your hand at writing a plugin.
jQuery was written by John Resig. The maintenance, and hosting, of jQuery is a service of Juniper Bay.
jQuery was heavily inspired by the previous work of Simon Willison, Ben Nolan, Sam Stephenson, Valerio Proietti, Dean Edwards, and Devo.