home / software / tips and tricks / Chapter 2- How to add JQuery to Your Web Pages?

Chapter 2- How to add JQuery to Your Web Pages?

Updated:  06/13/2013 19:06 PM
Author:  Shiju Mathews

Status:    Resolved.


How to add JQuery to Your Web Pages
<<   Previous ChapterChaper 2Next Chapter >>
 
There are two ways to add jQuery to a web page.
1) Download the jQuery library from jQuery.com and include in your web site.

There are two versions of jQuery available for downloading

Production version - this is for your live website because it has been minified and compressed.
Development version - this is for testing and development (uncompressed and readable code).

The jQuery library is a single JavaScript file
Go to http://jquery.com/download/ and download the required version. Save the file in to the root folder or in a specified directory , and we need to give a reference it with the HTML "script"



Download Code sample



2) Include jQuery from a content delivery network (CDN), like Google, MSN or jquery.com
JQuery can also include it from a CDN (Google and Microsoft host jQuery)

JQuery from Google CDN
visit developers.google.com and add the snippet to your code.



Download Code sample


<<   Previous ChapterChaper 2Next Chapter >>
 
Tags: Chapter 2- How to add JQuery to Your Web Pages?
Updated on: April 2024