http://api.jquery.com/category/version/1.4/
jQuery 1.4 API Cheat Sheet
-
.add( selector, context )
selectorA string containing a selector expression to match additional elements against.
contextAdd some elements rooted against the specified context.
-
.addClass( function(index, class) )
function(index, class)A function returning one or more space-separated class names to be added. Receives the index position of the element in the set and the old class value as arguments.
-
.after( function(index) )
function(index)A function that returns an HTML string to insert after each element in the set of matched elements.
-
.append( function(index, html) )
function(index, html)A function that returns an HTML string to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments.
-
.before( function )
functionA function that returns an HTML string to insert before each element in the set of matched elements.
-
.bind( events )
eventsA map of one or more JavaScript event types and functions to execute for them.
-
.clearQueue( [ queueName ] )
queueNameA string containing the name of the queue. Defaults to fx
, the standard effects queue.
-
.closest( selector, [ context ] )
selectorA string containing a selector expression to match elements against.
contextA DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.
-
jQuery.contains( container, contained )
containerThe DOM element that may contain the other element.
containedThe DOM node that may be contained by the other element.
-
.css( propertyName, function(index, value) )
propertyNameA CSS property name.
function(index, value)A function returning the value to set. Receives the index position of the element in the set and the old value as arguments.
-
.data( obj )
objAn object of key-value pairs of data to set.
-
jQuery.data()
-
.delay( duration, [ queueName ] )
durationAn integer indicating the number of milliseconds to delay execution of the next item in the queue.
queueNameA string containing the name of the queue. Defaults to fx
, the standard effects queue.
-
.detach( [ selector ] )
selectorA selector expression that filters the set of matched elements to be removed.
-
.first()
Reduce the set of matched elements to the first in the set.
-
.focusin( handler(eventObject) )
handler(eventObject)A function to execute each time the event is triggered.
-
.focusout( handler(eventObject) )
handler(eventObject)A function to execute each time the event is triggered.
-
.has( selector ), .has( contained )
selectorA string containing a selector expression to match elements against.
containedA DOM element to match elements against.
-
.html( function(index, html) )
function(index, html)A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments.
-
.index(), .index( selector )
selectorA selector representing a jQuery collection in which to look for an element.
-
jQuery.isEmptyObject( object )
objectThe object that will be checked to see if it's empty.
-
jQuery.isPlainObject( object )
objectThe object that will be checked to see if it's an object literal.
-
jQuery( html, props )
htmlA string defining a single, standalone, HTML element (e.g. <div/> or <div>).
propsAttributes, events, and methods to call on the newly-created element.
-
.last()
Reduce the set of matched elements to the final one in the set.
-
.nextUntil( [ selector ] )
selectorA string containing a selector expression to indicate where to stop matching following sibling elements.
-
jQuery.noop()
An empty function.
-
.offset( coordinates ), .offset( function(index, coords) )
coordinatesAn object containing the properties top
and left
, which are integers indicating the new top and left coordinates for the elements.
function(index, coords)A function to return the coordinates to set. Receives the index of the element in the collection as the first argument and the current coordinates as the second argument.
-
jQuery.param( obj, traditional )
objAn array or object to serialize.
traditionalA Boolean indicating whether to perform a traditional "shallow" serialization.
-
.parentsUntil( [ selector ] )
selectorA string containing a selector expression to indicate where to stop matching ancestor elements.
-
.prepend( function(index, html) )
function(index, html)A function that returns an HTML string to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments.
-
.prevUntil( [ selector ] )
selectorA string containing a selector expression to indicate where to stop matching preceding sibling elements.
-
jQuery.proxy( function, scope ), jQuery.proxy( scope, name )
functionThe function whose scope will be changed.
scopeThe object to which the scope of the function should be set.
nameThe name of the function whose scope will be changed (should be a property of the 'scope' object.
-
.removeAttr()
Remove an attribute from each element in the set of matched elements.
-
.removeClass( function(index, class) )
function(index, class)A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.
-
.replaceWith( function )
functionA function that returns an HTML string to replace the set of matched elements with.
-
.text( function(index, text) )
function(index, text)A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.
-
.toArray()
Retrieve all the DOM elements contained in the jQuery set, as an array.
-
.toggleClass( function(index, class), [ switch ] )
function(index, class)A function that returns a class name to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set and the old class value as arguments.
switchA boolean value to determine whether the class should be added or removed.
-
.unwrap()
Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
-
.val( function )
functionA function returning the value to set.
-
.wrap( wrappingFunction )
wrappingFunctionA callback function which generates a structure to wrap around the matched elements.
-
.wrapAll()
Wrap an HTML structure around all elements in the set of matched elements.
-
.wrapInner( wrappingFunction )
wrappingFunctionA callback function which generates a structure to wrap around the content of the matched elements.