Saturday, January 15, 2011

JQuey Notes

What is jQuery and how to use jQuery?

JQuery is a fast and concise JavaScript library that simplifies HTML document traversing, event handling animating, and Ajax interactions for rapid web development.

To use jQuery u need to download jQuery version file from jQuery.com and add a link to jQuery version from your webpage. Then jQuery will start work.


What is “$” in jQuery?

“$” Sign represents jQuery object.

Window.onload vs $(document).ready?

window.onload will start work after all documents of the file has been loaded.
But the $(document).ready start work just after the DOM is ready.

What are the features of jQuery?


JQuery having 8 major features:

1. Core functionality
2. Selection and Traversal
3. Manipulation & CSS
4. Events
5. Effects
6. Ajax
7. User Interface
8. Extensibility

How to jQuery retrieves content from the web page?

JQuery uses selectors and filters to retrieve content form the web page.

There are how many types of jQuery filters and what are they?


There are six types of jQuery filters.
1. Basic
2. Content (by string)
3. Visibility
4. Attribute
5. Child
6. Form