jQuery

logo

jQuery is the most widely-used JavaScript library, and is used in more than half of all major websites. It's motto is "write less, Do more...!"

jQuery makes web development easier to use by providing a number of 'helper' functions. These help developers to quickly write DOM (Document Object Model) interactions without needing to manually write as much JavaScript themselves.

jQuery adds a global variable with all of the libraries methods attached. The naming convention is to have this global variable as $. by typing in $. you have all the jQuery methods at your disposal.

Get Started

Before studying jQuery, you should have basic knowledge of these topics:

  1. HTML
  2. CSS
  3. JavaScript

Example Usage

When a user clicks on a button, all <p> elements will be hidden:

$(document).ready(function(){
    $("button").click(function(){
        $("p").hide();
    });
});

More Information


Contributing to the Guide

This open source guide is curated by thousands of contributors. You can help by researching, writing and updating these articles. It is an easy and fun way to get started with contributing to open source.