jquery

Lightweight Footprint

Only 32kB minified and gzipped. Can also be included as an AMD module

CSS3 Compliant

Supports CSS3 selectors to find elements as well as in style property manipulation

What is jQuery?

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

Corporate Members

Support from our corporate members makes it possible for the jQuery Foundation to continue our work on our JavaScript libraries and pushing the open web forward with events and participation in the standards process. View ourmembers page for a full list of corporate and individual members.

Other jQuery Foundation Projects

A Brief Look

DOM Traversal and Manipulation

Get the <button> element with the class 'continue' and change its HTML to 'Next Step...'

1 |  $("button.continue").html("Next Step...")

Event Handling

Show the #banner-message element that is hidden with display:none in its CSS when any button in #button-container is clicked.

1 | var hoddenBox =$("#banner-message")
2 | $("#button-container button").on("click",function(event){
3 | hiddenBox.show();
4 | });

Ajax

Call a local script on the server /api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp's html with the returned text.

1 |  $.ajax({
2 |    url:"/api/getWeather"
3 |    data:{
4 |      zipcode: 97201	
5 |     },
6 |     success: function(data){
7 |       $("#weather-temp").html("<strong>"+data+"</strong> degrees");
8 |     }
9 |  });