The $() function is an alias for the jQuery() function . This returns a special Java-Script object. This JavaScript Object contains an array of DOM elements that matches the selector. Selector is key thing in jQuery development.It is away to select node from DOM. This Java-Script object possesses a large number of useful predefined methods that can action group of elements.This type of construct is termed a wrapper because it wraps the matching element(s) with extended functionality.
document
Consider the following example.
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ // Your code here alert(“Checking function Fired”); } ) ; </script> </head> <body> <a href="http://www.beyondrelational.com /">Beyond Relational jQuery FAQ </a> </body> </html>
Note :We can also use jQuery(document) instead of $.
Tags: BRH, jquery interview questions., jquery faq, jquery interview questions, jqueryfaq, jquery features, jQueryinterview questions, jq, ready element, how jquery works,