The JQuery library can be added to a Web page with a single line of markup.
JQuery Library-Features
JQuery is a library of JavaScript functions.
The JQuery library contains the following features:
- HTML element Selection
- HTML element Operations
- CSS actions
- HTML Event functions
- JavaScript Effects and animations
- HTML DOM Traversal and modification
- Ajax
- Utilities
Add a jQuery library to your page
The jquery library is located in a JavaScript file that contains all the jquery functions.
You can add jQuery to your Web page with the following markup:
Please note that the,<script> label should be located in the Basic JQuery Instances
The following example illustrates the Hide () function of jQuery, which hides all the <p> elements in the HTML document.
Instance
Give it a shot yourself.
Download JQuery
A total of two versions of JQuery are available for download: One is streamlined and the other is uncompressed (for debugging or reading).
These two versions are available for download from jquery.com.
Substitution of libraries
Google and Microsoft have a good support for jQuery.
If you don't want to store the jquery library on your own computer, you can load the CDN jquery core file from Google or Microsoft.
using Google's CDN
Using the Microsoft CDN