You are on page 1of 4

jQUERY 1.

6 SELECTORS ✼ CORE ✼ ATTRIBUTES ✼ CSS ✼ TRAVERSING ✼ MANIPULATION ✼ EVENTS ✼ EFFECTS ✼ AJAX ✼ UTILITIES ✼ DEFERRED OBJECT
Designed by Antonio Lupetti © 2011 • http://woorkup.com • http://twitter.com/woork | jQuery is © of John Resig and the jQuery Team.
VISUAL CHEAT SHEET
★ = NEW IN jQUERY 1.6 / f(x) = FUNCTION / a = ARRAY / jQ = jQUERY / El = ELEMENT / 0-1 = BOOLEAN / Obj = OBJECT / NUM = NUMBER / Str = STRING

❉ SELECTORS / 1. BASIC :header Selector [name!=value] :file Selector .get( [ index ] )


a<El(s)>
Selects all elements that are headers, like a<El(s)> Select elements that either don't have the Selects all elements of type file. Retrieve the DOM elements matched by the El | a
a<El(s)>
All Selector (“*”) h1, h2, h3 and so on. specified attribute, or do have the specified jQuery object.
<El(s)> :image Selector
Selects all elements. attribute but not with a certain value. a<El(s)>
:last Selector Selects all elements of type image. .index()
a<El> [name^=value]
Class Selector (“.class”) Selects the last matched element. Search for a given element from among the Num
a<El(s)> :input Selector
Matches all elements with the given name. Selects elements that have the specified a<El(s)> matched elements.
:lt() Selector attribute with a value beginning exactly Selects all input, textarea, select and button a<El(s)>
Element Selector (“element”) a<El(s)> with a given string. elements. .length
Select all elements at an index less than Num
Selects all elements with the given tag a<El(s)> index within the matched set. The number of elements in the jQuery object.
[name] :password Selector
name. a<El(s)>
:not() Selector Selects elements that have the specified a<El(s)>
Selects all elements of type password. .selector
ID Selector (“#id”) Selects all elements that do not match the a<El(s)> attribute, with any value. A selector representing selector originally Str
Selects a single element with the given id a<El> given selector. :radio Selector passed to jQuery().
[name=value][name2=value2] a<El(s)>
attribute. Selects all elements of type radio.
:odd Selector Matches elements that match all of the a<El(s)> .size()
Multiple Selector (“selector1, Selects odd elements, zero-indexed. See a<El(s)> specified attribute filters. :reset Selector Return the number of DOM elements matched Num
a<El(s)>
selector2, selectorN”) a<El(s)> also even. Selects all elements of type reset. by the jQuery object.
Selects the combined results of all the ❉ SELECTORS / 6. CHILD FILTER :selected Selector .toArray()
specified selectors. a<El(s)>
❉ SELECTORS / 4. CONTENT FILTER Selects all elements that are selected. Retrieve all the DOM elements contained in the a
:first-child Selector jQuery set, as an array.
:contains() Selector Selects all elements that are the first child a<El(s)> :submit Selector
❉ SELECTORS / 2. HIERARCHY a<El(s)>
Select all elements that contain the a<El(s)> of their parent.
Selects all elements of type submit.
Child Selector (“parent > child”) specified text. ❉ CORE / 3. DATA
:last-child Selector
Selects all direct child elements specified by a<El(s)> :text Selector
:empty Selector Selects all elements that are the last child of a<El(s)> a<El(s)> .queue( [ queueName ], newQueue)
"child" of elements specified by "parent". Selects all elements of type text.
a<El(s)> their parent. Show the queue of functions to be executed on jQ
Select all elements that have no children
Descendant Selector (“ancestor (including text nodes). :nth-child Selector
the matched elements.
descendant”) ❉ CORE / 1. THE jQUERY FUNCTION
a<El(s)> :has() Selector Selects all elements that are the nth-child of a<El(s)> .data( obj )
Selects all elements that are descendants of a<El(s)> their parent. jQ
Selects elements which contain at least one jQuery() Store arbitrary data associated with the
a given ancestor. matched elements.
element that matches the specified selector. :only-child Selector Accepts a string containing a CSS selector jQ
Next Adjacent Selector (“prev + a<El(s)> which is then used to match a set of .removeData( [ name ] )
:parent Selector Selects all elements that are the only child jQ
next”) elements.
Select all elements that are the parent of a<El(s)> of their parent. Remove a previously-stored piece of data.
a<El(s)>
Selects all next elements matching "next" another element, including text nodes. jQuery.sub()
that are immediately preceded by a sibling .dequeue( [ queueName ] )
❉ SELECTORS / 7. VISIBILITY FILTER Creates a new copy of jQ whose properties jQ
"prev". Execute the next function on the queue for the jQ
and methods can be modified without
❉ SELECTORS / 5. ATTRIBUTE affecting the original jQuery object. matched elements.
Next Siblings Selector (“prev ~ :hidden Selector
a<El(s)>
siblings”) [name|=value] Selects all elements that are hidden. jQuery.when()
Selects all sibling elements that follow after a<El(s)>
Selects elements that have the specified Provides a way to execute callback functions ❉ CORE / 4. INTEROPERABILITY
the "prev" element, have the same parent, a<El(s)> :visible Selector based on one or more objects, usually Deferred
attribute with a value either equal to a a<El(s)>
and match the filtering "siblings" selector. given string or starting with that string Selects all elements that are visible. Deferred objects that represent jQuery.fn.extend( object )
followed by a hyphen (-). asynchronous events. Extends the jQuery element set to provide new jQ
jQuery.noConflict( ) methods (used to make a typical jQuery
❉ SELECTORS / 3. BASIC FILTER [name*=value] ❉ SELECTORS / 8. FORM plugin).
Relinquish jQuery's control of the $ Obj
Selects elements that have the specified a<El(s)>
:animated Selector attribute with a value containing the a :button Selector variable. jQuery.extend( object )
jQ
Select all elements that are in the progress a<El(s)> given substring. Selects all button elements and elements of a<El(s)> Extends the jQuery object itself.
of an animation at the time the selector is type button.
jQuery.holdReady() ★
run. [name~=value] Holds or releases the execution of jQuery's 0-1
Selects elements that have the specified a<El(s)>
:checkbox Selector ready event. ❉ ATTRIBUTES / 1. ATTR
:eq() Selector a<El(s)>
attribute with a value containing a given Selects all elements of type checkbox.
Select the element at index n within the a<El> word, delimited by spaces. jQuery.extend( object ) .attr( attributeName )
jQ
matched set. :checked Selector Extends the jQuery object itself. Get the value of an attribute for the first Str
[name$=value] a<El(s)>
Matches all elements that are checked. element in the set of matched elements.
:even Selector Selects elements that have the specified
a<El(s)> a<El(s)>
Selects even elements, zero-indexed attribute with a value ending exactly with :disabled Selector ❉ CORE / 2. OBJECT ACCESSORS .attr( attributeName, value )
a<El(s)>
a given string. Selects all elements that are disabled. Set one or more attributes for the set of Obj
:first Selector .context matched elements.
a<El> [name=value]
Selects the first matched element. :enabled Selector The DOM node context originally passed to El
a<El(s)> .removeAttr()
Selects elements that have the specified a<El(s)> Selects all elements that are enabled. jQuery().
:gt() Selector attribute with a value exactly equal to a Remove an attribute from each element in the jQ
Select all elements at an index greater than a<El(s)> certain value. :focus selector ★ .each( function(index, Element) ) set of matched elements.
index within the matched set. a<El(s)> jQ
Selects element if it is currently focused. Iterate over a jQ object, executing a function
for each matched element.
jQUERY 1.6 SELECTORS ✼ CORE ✼ ATTRIBUTES ✼ CSS ✼ TRAVERSING ✼ MANIPULATION ✼ EVENTS ✼ EFFECTS ✼ AJAX ✼ UTILITIES ✼ DEFERRED OBJECT
Designed by Antonio Lupetti © 2011 • http://woorkup.com • http://twitter.com/woork | jQuery is © of John Resig and the jQuery Team.
VISUAL CHEAT SHEET
★ = NEW IN jQUERY 1.6 / f(x) = FUNCTION / a = ARRAY / jQ = jQUERY / El = ELEMENT / 0-1 = BOOLEAN / Obj = OBJECT / NUM = NUMBER / Str = STRING

.prop( propertyName ) ★ ❉ CSS / 1. CSS .outerHeight() .closest( selectors, [ context ] ) ❉ TRAVERSING / 3. MISCELLANEOUS
Str Get the current computed height for the first Get the first ancestor element that matches the
Get the value of a property for the first element in a .add()
the set of matched elements.
.css( propertyName ) element in the set of matched elements, Int
selector, beginning at the current element and jQ
Get the value of a style property for the first Str including padding, border, and optionally progressing up through the DOM tree. Add elements to the set of matched elements.
.prop( propertyName, value ) ★ element in the set of matched elements. margin.
.find( selector ) .add( selectors, [ context ] )
jQ .outerWidth() jQ
Set one or more properties for the set of matched .css( propertyName, value ) Add elements to the set of matched elements.
elements. jQ Get the descendants of each element in the jQ
Set one or more CSS properties for the set of Get the current computed width for the first Int current set of matched elements, filtered by a .andSelf()
matched elements. element in the set of matched elements,
.removeprop( propertyName, value ) ★ selector, jQuery object, or element.
including padding and border. Add the previous set of elements on the stack to jQ
jQ
Remove a property for the set of matched elements .next( [ selector ] ) the current set.
.width( value )
❉ CSS / 2. POSITIONING jQ
Set the CSS width of each element in the set of Get the immediately following sibling of each jQ .contents()
matched elements. element in the set of matched elements, optionally jQ
❉ ATTRIBUTES / 2. CLASS .scrollLeft() filtered by a selector. Get the children of each element in the set of
matched elements, including text nodes.
Get the current horizontal position of the Int .width()
.addClass( class ) scroll bar for the first element in the set of Int .nextAll( [ selector ] )
Get the current computed width for the first .end()
Adds the specified class(es) to each of the set of jQ matched elements.
element in the set of matched elements. Get all following siblings of each element in the jQ End the most recent filtering operation in the
matched elements. jQ
.scrollLeft( value ) set of matched elements, optionally filtered by a current chain and return the set of matched
selector. elements to its previous state.
.hasClass( class ) Set the current horizontal position of the jQ ❉ TRAVERSING / 1. FILTERING
0-
Determine whether any of the matched elements scroll bar for each of the set of matched .nextUntil( [ selector ] )
1
elements.
are assigned the given class. .eq( - index ) Get all following siblings of each element up to jQ ❉ MANIPULATION / 1. INSIDE
.offset() Reduce the set of matched elements to the one at jQ but not including the element matched by the
.removeClass( class )
Obj the specified index. selector. .append( content )
Remove a single class, multiple classes, or all Get the current coordinates of the first
jQ {top, left} Insert content, specified by the parameter, to the
classes from each element in the set of matched element in the set of matched elements, jQ
elements. relative to the document. .eq( index ) .offsetParent() end of each element in the set of matched
jQ jQ elements.
Reduce the set of matched elements to the one at Get the closest ancestor element that is
.toggleClass( class, switch ) .offset( coordinates ) the specified index. positioned. .append( function(index, html) )
Add or remove one or more classes from each Set the current coordinates of every element jQ
jQ in the set of matched elements, relative to Insert content, specified by the parameter, to the jQ
element in the set of matched elements, depending .filter( selector ) .parent( [ selector ] ) end of each element in the set of matched
on either the class's presence or the value of the the document.
Reduce the set of matched elements to those that jQ elements.
switch argument. Get the parent of each element in the current set jQ
.position() match the selector or pass the function's test.
of matched elements, optionally filtered by a
Obj .appendTo( target )
Get the current coordinates of the first selector.
element in the set of matched elements, {top, left} .is( selector ) Insert every element in the set of matched jQ
❉ ATTRIBUTES / 3. HTML
relative to the offset parent. Check the current matched set of elements .parents( [ selector ] ) elements to the end of the target.
0-1
.html() against a selector, element, or jQuery object and
.scrollTop() return true if at least one of these elements
Get the ancestors of each element in the current jQ .prepend( content )
Get the HTML contents of the first element in the Str set of matched elements, optionally filtered by a
Get the current vertical position of the scroll Int matches the given arguments. Insert content, specified by the parameter, to the jQ
set of matched elements. selector.
bar for the first element in the set of beginning of each element in the set of matched
matched elements. .map( callback(index, domEl) ) elements.
.html( htmlString ) .parentsUntil( [ selector ] )
Pass each element in the current matched set jQ
Set the HTML contents of each element in the set of jQ .scrollTop( value ) through a function, producing a new jQuery Get the ancestors of each element in the current jQ .prependTo( target )
matched elements. Set the current vertical position of the scroll object containing the return values. set of matched elements, up to but not including Insert content, specified by the parameter, to the jQ
bar for each of the set of matched elements. the element matched by the selector. end of each element in the set of matched
.not() elements.
❉ ATTRIBUTES / 4. TEXT Remove elements from the set of matched jQ .prev( [ selector ] )
❉ CSS / 3. HEIGHT & WIDTH elements. Get the immediately preceding sibling of each jQ ❉ MANIPULATION / 2. OUTSIDE
.text() element in the set of matched elements, optionally
Get the combined text contents of each element in .height( value ) filtered by a selector.
Str .slice( start, [ end ] ) .after( content )
the set of matched elements, including their Set the CSS height of every matched jQ jQ
Reduce the set of matched elements to a subset jQ
descendants. element. .prevAll( [ selector ] ) Insert content, specified by the parameter, after
specified by a range of indices.
each element in the set of matched elements.
.text( textString ) .height() Get all preceding siblings of each element in the jQ
Set the content of each element in the set of jQ Int set of matched elements, optionally filtered by a .after( function(index) )
Get the current computed height for the first selector.
matched elements to the specified text. element in the set of matched elements. ❉ TRAVERSING / 2. TREE TRAVERSAL Insert content, specified by the parameter, to the jQ
end of each element in the set of matched
.innerHeight() .children( [ selector ] ) .prevUntil( [ selector ] ) elements.
❉ ATTRIBUTES / 5. VALUE Get the current computed height for the first Int Get the children of each element in the set of jQ Get the ancestors of each element in the current jQ
set of matched elements, optionally filtered by a
.before( content )
element in the set of matched elements, matched elements, optionally filtered by a
jQ
.val() including padding but not border. selector. selector. Insert content, specified by the parameter, before
Str each element in the set of matched elements.
Get the current value of the first element in the set | a .innerWidth()
of matched elements.
.closest( selector ) .siblings( [ selector ] )
.before( function )
Get the current computed width for the first Int Get the first ancestor element that matches the jQ Get the siblings of each element in the set of jQ
Insert content, specified by the parameter, before jQ
.val( value ) element in the set of matched elements, selector, beginning at the current element and matched elements, optionally filtered by a
jQ including padding but not border. progressing up through the DOM tree. selector. each element in the set of matched elements.
Set the value of each element in the set of matched
elements.
jQUERY 1.6 SELECTORS ✼ CORE ✼ ATTRIBUTES ✼ CSS ✼ TRAVERSING ✼ MANIPULATION ✼ EVENTS ✼ EFFECTS ✼ AJAX ✼ UTILITIES ✼ DEFERRED OBJECT
Designed by Antonio Lupetti © 2011 • http://woorkup.com • http://twitter.com/woork | jQuery is © of John Resig and the jQuery Team.
VISUAL CHEAT SHEET
★ = NEW IN jQUERY 1.6 / f(x) = FUNCTION / a = ARRAY / jQ = jQUERY / El = ELEMENT / 0-1 = BOOLEAN / Obj = OBJECT / NUM = NUMBER / Str = STRING

.insertAfter( target ) ❉ MANIPULATION / 6. COPYING ❉ EVENTS / 3. MOUSE EVENTS ❉ EVENTS / 4. FORM EVENTS event.pageX
Insert every element in the set of matched jQ Num
.blur( handler(eventObject) ) The mouse position relative to the left edge of
elements after the target. .clone( [ withDataAndEvents ] ) .click( handler(eventObject) ) the document.
jQ jQ Bind an event handler to the "blur" JavaScript jQ
Create a deep copy of the set of matched Bind an event handler to the "click" JavaScript
.insertBefore( target ) event, or trigger that event on an element.
elements. event, or trigger that event on an element. event.pageY
Insert every element in the set of matched jQ
elements before the target. .dblclick( handler(eventObject) ) .change( handler(eventObject) ) The mouse position relative to the top edge of Num
❉ EVENTS / 1. DOCUMENT LOADING Bind an event handler to the "change" jQ the document.
Bind an event handler to the "dblclick" jQ JavaScript event, or trigger that event on an
❉ MANIPULATION / 3. AROUND JavaScript event, or trigger that event on an
.load( handler(eventObject) ) element. event.preventDefault()
element.
Bind an event handler to the "load" JavaScript jQ .focus( handler(eventObject) ) If this method is called, the default action
.unwrap() of the event will not be triggered.
event. .focusin( handler(eventObject) ) jQ
Remove the parents of the set of matched jQ Bind an event handler to the "focus" JavaScript
Bind an event handler to the "focusin" JavaScript jQ
elements from the DOM, leaving the matched .ready( handler ) event, or trigger that event on an element.
event. event.relatedTarget
elements in their place. jQ
Specify a function to execute when the DOM is .select( handler(eventObject) ) The other DOM element involved in the event, El
.wrap( wrappingElement ) fully loaded. .focusout( handler(eventObject) ) Bind an event handler to the "select" JavaScript jQ if any.
jQ Bind an event handler to the "focusout" jQ event, or trigger that event on an element.
Wrap an HTML structure around each element in .unload( handler(eventObject) )
the set of matched elements. jQ JavaScript event. event.result
Bind an event handler to the "unload" JavaScript .submit( handler(eventObject) )
event. This attribute contains the last value returned Anything
Obj
.wrap( wrappingFunction ) .hover( handlerIn(eventObject), Bind an event handler to the "submit" JavaScript jQ
by an event handler that was triggered by this
jQ handlerOut(eventObject) ) event, or trigger that event on an element. event, unless the value was undefined.
Wrap an HTML structure around each element in
jQ
the set of matched elements. ❉ EVENTS / 2. HANDLER ATTACHMENT Bind two handlers to the matched elements, to be
executed when the mouse pointer enters and event.stopImmediatePropagation()
❉ EVENTS / 5 KEYBOARD EVENTS
.wrapAll( wrappingElement ) .bind( eventType, [ eventData ], handler leaves the elements. Prevents other event handlers from being
Wrap an HTML structure around all elements in jQ .keydown( handler(eventObject) ) called.
(eventObject) ) jQ
the set of matched elements. .hover( handler(eventObject) )
Attach a handler to an event for the elements. Bind an event handler to the "keydown" jQ event.stopPropagation()
Bind a single handler to the matched elements, to jQ JavaScript event, or trigger that event on an
.wrapInner( wrappingElement ) be executed when the mouse pointer enters or Prevents the event from bubbling up the DOM
.delegate( selector, eventType, element.
Wrap an HTML structure around the content of jQ leaves the elements. tree, preventing any parent handlers from
handler )
each element in the set of matched elements.
jQ
.keypress( handler(eventObject) ) being notified of the event.
Attach a handler to one or more events for all .mousedown( handler(eventObject) ) Bind an event handler to the "keypress" jQ
.wrapInner( wrappingFunction ) elements that match the selector, now or in the
Bind an event handler to the "mousedown" jQ JavaScript event, or trigger that event on an event.target
jQ future, based on a specific set of root elements. El
Wrap an HTML structure around the content of JavaScript event, or trigger that event on an element.
The DOM element that initiated the event.
each element in the set of matched elements. .die() element.
Remove all event handlers previously attached jQ .keyup( handler(eventObject) )
.mouseenter( handler(eventObject) ) Bind an event handler to the "keyup" JavaScript jQ event.timeStamp
using .live() from the elements.
❉ MANIPULATION / 4. REPLACING event, or trigger that event on an element. This attribute returns the number of
Bind an event handler to be fired when the jQ Num
.live( eventType, eventData, handler ) mouse enters an element, or trigger that handler milliseconds since January 1, 1970, when the
.replaceWith( newContent ) on an element. event is triggered.
Attach a handler to the event for all elements jQ
jQ
Replace each element in the set of matched which match the current selector, now or in the ❉ EVENTS / 6. EVENT OBJECT
elements with the provided new content. future. .mouseleave( handler(eventObject) ) event.type
Str
.replaceWith( function ) .one( eventType, [ eventData ], handler Bind an event handler to be fired when the jQ event.currentTarget Describes the nature of the event.
mouse leaves an element, or trigger that handler The current DOM element within the event El
Replace each element in the set of matched jQ (eventObject) ) jQ on an element. bubbling phase.
elements with the provided new content. Attach a handler to an event for the elements. event.which
.replaceAll() The handler is executed at most once per element. .mousemove( handler(eventObject) ) For key or button events, this attribute Str
event.data
jQ Bind an event handler to the "mousemove" jQ indicates the specific button or key that was
A selector expression indicating which element(s) .trigger( eventType, extraParameters) Contains the optional data passed to pressed.
to replace. JavaScript event, or trigger that event on an
Execute all handlers and behaviors attached to jQ jQuery.fn.bind when the current executing
element.
the matched elements for the given event type. handler was bound.
.mouseout( handler(eventObject) ) ❉ EVENTS / 6. BROWSER EVENTS
❉ MANIPULATION / 5. REMOVING .triggerHandler( eventType, event.isDefaultPrevented()
extraParameters ) Bind an event handler to the "mouseout" jQ 0-1
jQ Returns whether event.preventDefault() was .error( handler(eventObject) )
.detach( [ selector ] ) JavaScript event, or trigger that event on an
jQ
Execute all handlers attached to an element for element. ever called on this event object. Bind an event handler to the "error"
Remove the set of matched elements from the jQ
an event. JavaScript event.
DOM.
.mouseover( handler(eventObject) ) event.
.unbind( eventType, handler .resize( handler(eventObject) )
.empty() Bind an event handler to the "mouseover" isImmediatePropagationStopped()
(eventObject) ) jQ
jQ 0-1 Bind an event handler to the "resize"
Remove all child nodes of the set of matched jQ JavaScript event, or trigger that event on an Returns whether jQ
elements from the DOM. Remove a previously-attached event handler element. event.stopImmediatePropagation() was ever JavaScript event, or trigger that event on an
from the elements. called on this event object. element.
.remove( [ selector ] ) .mouseup( handler(eventObject) )
.undelegate() .scroll( handler(eventObject) )
Remove the set of matched elements from the jQ event.isPropagationStopped()
Remove a handler from the event for all elements Bind an event handler to the "mouseup" jQ
DOM. jQ 0-1 Bind an event handler to the "scroll" jQ
which match the current selector, now or in the JavaScript event, or trigger that event on an Returns whether event.stopPropagation() was
element. JavaScript event, or trigger that event on an
future, based upon a specific set of root elements. ever called on this event object.
element.
jQUERY 1.6 SELECTORS ✼ CORE ✼ ATTRIBUTES ✼ CSS ✼ TRAVERSING ✼ MANIPULATION ✼ EVENTS ✼ EFFECTS ✼ AJAX ✼ UTILITIES ✼ DEFERRED OBJECT
Designed by Antonio Lupetti © 2011 • http://woorkup.com • http://twitter.com/woork | jQuery is © of John Resig and the jQuery Team.
VISUAL CHEAT SHEET
★ = NEW IN jQUERY 1.6 / f(x) = FUNCTION / a = ARRAY / jQ = jQUERY / El = ELEMENT / 0-1 = BOOLEAN / Obj = OBJECT / NUM = NUMBER / Str = STRING / ♥ = PROMISE

❉ EFFECTS / 1. BASIC jQuery.ajaxSetup( option ) ❉ AJAX / 4. DATA jQuery.isPlainObject( obj ) ❉ DEFERRED OBJECT
0-1
Set default values for future Ajax requests. 0-1
Check to see if an object is a plain object
.hide( duration, [ callback ] ) .serialize() (created using "{}" or "new Object"). deferred.done( doneCallbacks )
jQ Str
Hide the matched elements. Encode a set of form elements as a string for Add handlers to be called when the Deferred Def
❉ AJAX / 2. SHORTHAND METHODS submission. jQuery.isXMLDoc( node ) object is resolved.
.show( duration, [ callback ] ) Check to see if a DOM node is within an XML 0-1
jQ .serializeArray()
Display the matched elements. jQuery.get( url, [ data ], [ callback(data, document (or is an XML document).
textStatus, XMLHttpRequest) ], Encode a set of form elements as an array of a deferred.fail( failCallbacks )
names and values. jQuery.makeArray( obj ) Add handlers to be called when the Deferred Def
[ dataType ] ) jqXHR
❉ EFFECTS / 2. SLIDING Convert an array-like object into a true a object is rejected.
Load data from the server using a HTTP GET
JavaScript array.
.slideDown( [ duration ], [ callback ] ) request. ❉ UTILITIES / 1. UTILITIES
deferred.isRejected()
Display the matched elements with a sliding jQ jQuery.getJSON( url, [ data ],
jQuery.browser jQuery.map( array, callback Determine whether a Deferred object has been 0-1
motion. [ callback(data, textStatus) ] ) jqXHR Contains flags for the useragent, read from
(elementOfArray, indexInArray) ) a rejected.
.slideToggle( [ duration ], [ callback ] ) Load JSON-encoded data from the server navigator.userAgent. While jQuery.browser will Map Translate all items in an array or object to
jQ using a GET HTTP request. not be removed from future versions of jQuery, new array of items.
Display or hide the matched elements with a deferred.isResolved()
sliding motion. every effort to use jQuery.support and proper 0-1
jQuery.getScript( url, [ success(data, feature detection should be made. Determine whether a Deferred object has been
jQuery.merge( first, second ) resolved.
.slideUp( [ duration ], [ callback ] ) textStatus) ] ) jqXHR a
Merge the contents of two arrays together
Hide the matched elements with a sliding jQ Load a JavaScript file from the server using a jQuery.browser.version into the first array.
motion. GET HTTP request, then execute it. Str
Returns the version number of the rendering deferred.promise()
engine for the user's browser. jQuery.noop() Def
.load( url, [ data ], [ complete Return a Deferred's Promise object.
(responseText, textStatus, An empty function.
❉ EFFECTS / 3. FADING jQuery.contains( container, contained )
XMLHttpRequest) ] ) jQ 0-1
.fadeIn( [ duration ], [ callback ] )
Check to see if a DOM node is within another jQuery.parseJSON( json ) deferred.reject( args )
Load data from the server and place the DOM node. Obj
jQ returned HTML into the matched element. Takes a well-formed JSON string and Reject a Deferred object and call any Def
Display the matched elements by fading them
jQuery.each( collection, callback returns the resulting JavaScript object. failCallbacks with the given args.
to opaque.
jQuery.post( url, [ data ], [ success (indexInArray, valueOfElement) )
.fadeOut( [ duration ], [ callback ] ) (data, textStatus, XMLHttpRequest) ], Obj
jQuery.proxy( function, context )
Iterates through the array displaying each deferred.rejectWith( context,[args] )
Hide the matched elements by fading them to jQ [ dataType ] ) jqXHR
number as both a word and numeral Takes a function and returns a new one that f(x)
Def
transparent. Reject a Deferred object and call any
Load data from the server using a HTTP POST will always have a particular context.
jQuery.extend( target, [ object1 ], failCallbacks with the given context and args.
request.
.fadeTo( duration, opacity, [ callback ] ) jQuery.queue( element,
jQ [ objectN ] ) Obj
Adjust the opacity of the matched elements.
Merge the contents of two or more objects [ queueName ] ) deferred.resolve( args )
a
Def
❉ AJAX / 3. AJAX EVENT HANDLERS together into the first object. Show the queue of functions to be executed Resolve a Deferred object and call any
doneCallbacks with the given args.
❉ EFFECTS / 4. CUSTOM jQuery.globalEval( code )
on the matched element.
.ajaxComplete( handler(event,
Execute some JavaScript code globally. jQuery.queue( element, queueName,
.animate( properties, options ) XMLHttpRequest, ajaxOptions) ) jQ deferred.resolveWith( args )
jQ newQueue ) a Def
Perform a custom animation of a set of CSS Register a handler to be called when Ajax jQuery.hasData( element ) Resolve a Deferred object and call any
properties. requests complete. Show the queue of functions to be executed doneCallbacks with the given context and args.
Determine whether an element has any jQuery 0-1 on the matched element.
.delay( duration, [ queueName ] ) .ajaxStart( handler() ) data associated with it.
jQuery.removeData( element, deferred.then( doneCallbacks,
Set a timer to delay execution of subsequent jQ Register a handler to be called when the first jQ
jQuery.grep( array, function [ name ] ) jQ failCallbacks ) Def
items in the queue. Ajax request begins.
(elementOfArray, indexInArray),[ invert ] ) a Remove a previously-stored piece of data. Add handlers to be called when the Deferred
.stop( [ clearQueue ], [ jumpToEnd ] ) .ajaxStop( handler() ) Finds the elements of an array which satisfy a object is resolved or rejected.
Stop the currently-running animation on the jQ Hide a loading message after all the Ajax jQ filter function. The original array is not affected. jQuery.support
matched elements. requests have stopped. A collection of properties that represent the deferred. always( alwaysCallbacks ) ★
Obj
jQuery.inArray( value, array ) presence of different browser features or Add handlers to be called when the Deferred Def
jQuery.fx.off .ajaxError( handler(event, Nu bugs.
0-1 Search for a specified value within an array and m object is either resolved or rejected.
Globally disable all animations. XMLHttpRequest, ajaxOptions, return its index (or -1 if not found).
thrownError) ) jQ jQuery.trim( str )
Obj deferred. pipe( [ doneFilter ],
Register a handler to be called when Ajax Remove the whitespace from the beginning
❉ AJAX / 1. LOW-LEVEL INTERFACE jQuery.isArray( obj ) and end of a string. [ failFilter ] ) ★ ♥
requests complete with an error. 0-1
Determine whether the argument is an array. Utility method to filter and/or chain Deferreds.
jQuery.ajax( url, [ settings ] ) .ajaxSend( handler(event, jQuery.parseXML( data )
Perform an asynchronous HTTP (Ajax) jqXHR XMLHttpRequest, ajaxOptions) ) jQ XMLdoc
jQuery.isEmptyObject( obj ) Parses a string into an XML document. .promise( [ type ], [ target ] ) ★
request. Show a message before an Ajax request is sent. Check to see if an object is empty (contains no 0-1
Return a Promise object to observe when all ♥
.ajaxSuccess( handler(event, properties). jQuery.unique() actions of a certain type bound to the collection,
jQuery.ajax( settings )
jQ queued or not, have finished.
Perform an asynchronous HTTP (Ajax) jqXHR XMLHttpRequest, ajaxOptions) ) jQ
Sorts an array of DOM elements, in place,
jQuery.isFunction( obj ) with the duplicates removed.
request. Show a message when an Ajax request
Determine if the argument passed is a Javascript 0-1
completes successfully.
function object.

You might also like