Jquery Install

Jquery Install

There are following ways to install/add jquery in your page.

  • 1. Download : You can directly download jquery from http://jquery.com/download/ and use jquery install
  • 2. Use CDN:You can include from CDN example google , jQuery.com –
    <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>

Download jQuery

You can download jQuery from jQuery.com there are two types of versions available.
1. Production Version : This is compressed version for the live websites.
2. Development Version : This is uncompressed and readable for development and testing purpose.

Suppose you download production version jquery-2.1.4.min.js and have put it in the root of application.
Note: jQuery jquery-2.1.4.min.js needs to be included within the


tag such as

<script type="text/javascript" src="jquery-2.1.4.min.js"></script>

Note : Include the jquery-2.1.4.min.js only once.

jQuery CDN Example :

jQuery CDN Example :

<!DOCTYPE html>
<title>jQuery CDN Example</title>
 <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js">
   <script type="text/javascript">
           alert("Hello World You Are Using Cdn!");
           document.write("Hello World You Are Using Cdn from http://code.jquery.com/jquery-2.1.4.min.js");

Try it »

Get Jquery Install & enjoy programming!

Add Comment

📖 Read More