Install Process of  jQuery:

To use jQuery first of all you have to install it. There is a many ways to start using jQuery. Here we will learn two patterns of installing jQuery.

  • Download from jquery.com
  • Include from a CDN

Download from “jquery.com”:

You can download a jQuery library from “jquery.com “. When you download jQuery there are two versions for it:

  • Production
  • Development

 

 

 

Production Version: The production version is compressed and minified so that it has been used for your live website.

Development Version: The development version is uncompressed and a readable code so this is used for development and testing.

Note: You can download both versions from jquery.com

How to use?

After downloading the jQuery library you can use it in your application. jQuery library is a single JavaScript file and you have to use this file in the <script></script> tag. The <script> tag should be written in <head> section.

Example:

Note: Save the downloaded file in same directory where you are going to use it.

Include from a CDN (Content Delivery Network) :

If you don’t want to download the jQuery library from the jquery.com site so you can include jQuery from a CDN. There are two jQuery hosts available for CDN.

  • Microsoft
  • Goggle

 

 

 

You can use any one of them.

Microsoft CDN:

<head>
< script src=”http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js”></script>
< /head>

 Goggle CDN:

<head>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script>
< /head>

 Example:

In following example we are using Google CDN.

 

One response to “Install jQuery”

  1. Tyler Antunes says:

    You have observed very interesting points! very decent web site.

Leave a Reply

Your email address will not be published. Required fields are marked *