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.


  • Ease of use
    This is pretty much the main advantage of using JQuery, it is a lot more easy to use compared to standard javascript and other javascript libraries.
  • Large library
    JQuery enables you to perform hordes of functions in comparison to other Javascript libraries.
  • Community There are hundreds of prewritten plugins available for download to instantly speed up your development process.
  • Documentation and tutorials Documentation and tutorials to get even an absolute beginner in programming to get the ball rolling with this library.
  • Ajax support Ajax enables a sleeker interface where actions can be performed on pages without requiring the entire page to be reloaded.

How to use jQuery?

2 ways to apply jQuery

1. Download the jQuery file from jQuery site and select the version that you want. And include it to your files.

2. Use external links from google developers library
Note: If you are working offline this will not work

Place always the jQuery library before your jquery script

How to check if jQuery library is loaded?

To check if jQuery library is loaded, use the following JavaScript code :