What is the purpose of jQuery :-
How to add jQuery to your Web Page – jQuery Introduction ?
There are two different method available for adding jQuery inside the web page.
- Download the library From jQuery.com .
- Insert the jQuery library from CDN ( Content delivery Network ).
1. Download the library From jQuery.com : This procedure is also called as manually adding jQuery library in your web page or website . In this method first we have to open the official jQuery website the download the current jQuery library which is 3.1.1 at the present date of 4th December 2016 . After download follow the below code to include the jQuery libary inside your webpage.
Code for Manually add jQuery in your webpage .
<html> <head> <script src="jquery-3.1.1.min.js"></script> </head> <body> </body> </html>
2. Insert the jQuery library from CDN ( Content delivery Network ) : This option is for all the users who dose not want to host the jQuery library on their web hosting server. You can use Google’s CDN to include this library .
Code for adding jQuery using Google CDN.
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> </head> <body> </body> </html>