jQuery is a lightweight "write less, do more" JavaScript library. The purpose of jQuery is to make JavaScript easy to use on our website. jQuery take a lot of common task that requires a lot of JavaScript code and wraps them into less code or just a single line. jQuery also simplifies a lot of complicated things from JavaScript like AJAX calls, and DOM manipulation. The jQuery library contains the following features.
- HTML/DOM manipulation
- CSS manipulation
- HTML event methods
- Effects and Animations
- AJAX
- Utilities
- Microsoft
- IBM
Addding jQuery to your webpage
There are several ways to add jQuery on your website.- Download the jQuery library from jQuery.com
- Include jQuery from a CDN
Downloading jQuery
There are two versions of jQuery available for downloading:- Production Version
- Development Version
<head> <script src="jquery-1.11.0.min.js"></script> </head>
Alternatives to Downloading
If you don't want to download and host jQuery directly, you can include it from a CDN (Content Delivery Network). Both Google and Microsoft host jQueryGoogle CDN:
<head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/<br />jquery.min.js"></script> </head>Microsoft CDN:
<head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js"></script> </head>
0 comments:
Post a Comment