JQuery Home

JQuery Home

jQuery is a fast and concise JavaScript library created by John Resig in 2006.

jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for Rapid Web Development.

What is jQuery?

jQuery is a lightweight, "write less, do more", JavaScript library.

The purpose of jQuery is to make it much easier to use JavaScript on your website.

jQuery takes a lot of common tasks that requires many lines of JavaScript code to accomplish, and wraps it into methods that you can call with a single line of code.

jQuery also simplifies a lot of the 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

Tip: In addition, jQuery has plugins for almost any task out there. 

Why jQuery?

There are a lots of other JavaScript frameworks out there, but jQuery seems to be the most popular, and also the most extendable.

Many of the biggest companies on the Web use jQuery, like:

·         Google

·         Microsoft

·         IBM

·         Netflix

Will jQuery work in all browsers? 

The jQuery team knows all about cross-browser issues, and they have written this knowledge into the jQuery library. jQuery will run exactly the same in all major browsers, including Internet Explorer 6!

jQuery Install 

Adding jQuery to Your Web Pages

To use jQuery, you need to download the jQuery library (explained below), and include it on the pages you wish to use it.

The jQuery library is a single JavaScript file, and you reference to it using the HTML <script> tag:

<head> <script src="jquery.js"></script> </head> 

Notice that the <script> tag should be inside the page's <head> section. 

Do you wonder why we do not have type="text/javascript" inside the <script> tag? 

This is not required in HTML5. JavaScript is the default scripting language in HTML5 and in all modern browsers!  

Downloading jQuery

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)

Both versions can be downloaded from jQuery.com.

Tip: Place the downloaded file in the same directory as the pages where you wish to use it.

ليست هناك تعليقات:

إرسال تعليق