About jQuery


What is jQuery ?
jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML.
Features

jQuery includes the following features:
1.DOM element selections using the cross-browser open source selector engine Sizzle, a spin-off 
  out of the jQuery project
2.DOM traversal and modification (including support for CSS 1-3)
3.DOM manipulation based on CSS selectors that uses node elements name and node elements  
  attributes (id and class) as criteria to build selectors
4.Events
5.Effects and animations
6.Ajax
7.Extensibility through plug-ins
8.Utilities - such as user agent information, feature detection
9.Compatibility methods that are natively available in modern browsers but need fallbacks for older  
   ones - For example the inArray() and each() functions.
10.Cross-browser support

Including the library
The jQuery library is a single JavaScript file, containing all of its common DOM, event, effects, and Ajax functions. It can be included within a web page by linking to a local copy, or to one of the many copies available from public servers. 

<script type="text/javascript" src="jquery.js"></script>
The most popular and basic way to introduce a jQuery function is to use the .ready() function. 

$(document).ready(function() {
// script goes here
});
or the shortcut

$(function() {
// script goes here
});

References
Wikipedia

No comments:

Post a Comment