-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
jQuery 1.4 Reference Guide
The following function underpins the entire jQuery library. It serves as an "object factory," which allows us to create the jQuery objects that all of the other methods are attached to. The function is named jQuery(), but as with all uses of that identifier throughout the library, we typically use the alias $() instead.
Create a new jQuery object matching elements in the DOM.
$(selector[, context]) $(element) $(elementArray) $(object) $(html)
selector: A string containing a selector expression
context (optional): The portion of the DOM tree within which to search
element: A DOM element to wrap in a jQuery object
elementArray: An array containing a set of DOM elements to wrap in a jQuery object
object: An existing jQuery object to clone
html: A string containing an HTML snippet describing new DOM elements to create
The newly...
Change the font size
Change margin width
Change background colour