You are on page 1of 2

jQuery

Selectors
Basics
* .class element #id selector1, selectorN, ... parent > child ancestor descendant prev + next prev ~ siblings :animated :eq() :even :first :gt() :header :last :lt() :not() :odd

Quick API Reference

http://oscarotero.com/jquery

Attributes / CSS
Attribute
[name|="value"] [name*="value"] [name~="value"] [name$="value"] [name="value"] [name!="value" [name^="value"] [name] [name="value"][name2="value2"] :first-child :last-child :nth-child() :only-child :button :checkbox :checked :disabled :enabled :focus :file :image :input :password :radio :reset :selected :submit :text

Manipulation
Copying
.clone()

Traversing
Filtering
.eq() .filter() .first() .has() .is() .last() .map() .not() .slice()

Attributes

.attr() .prop() .removeAttr() .removeProp() .val() .addClass() .css() jQuery.cssHooks .hasClass() .removeClass() .toggleClass() .height() .innerHeight() .innerWidth() .outerHeight() .outerWidth() .width() .offset() .offsetParent() .position() .scrollLeft() .scrollTop() jQuery.data() .data() jQuery.hasData() jQuery.removeData() .removeData()

DOM Insertion, Around


.wrap() .wrapAll() .wrapInner()

Hierarchy

CSS

DOM Insertion, Inside


.append() .appendTo() .html() .prepend() .prependTo() .text()

Child Filters

Miscellaneous Traversing
.add() .andSelf() .contents() .end()

Basic Filters

Dimensions

Forms

DOM Insertion, Outside


.after() .before() .insertAfter() .insertBefore() .detach() .empty() .remove() .unwrap()

Tree Traversal
.children() .closest() .find() .next() .nextAll() .nextUntil() .parent() .parents() .parentsUntil() .prev() .prevAll() .prevUntil() .siblings()

Offset

DOM Removal

Content Filters
:contains() :empty :has() :parent :hidden :visible

DOM Replacement
.replaceAll() .replaceWith()

Visibility Filters

Data

Events
Browser Events
.error() .resize() .scroll() .click() .dblclick() .focusin() .focusout() Document Loading .hover() .holdReady() .mousedown() .load() .mouseenter() .ready() .mouseleave() .unload() .mousemove() .mouseout() Event Handler Attachment .mouseover() .bind() .mouseup() .delegate() .toggle() .die() Event Object .live() .off() event.currentTarget .on() event.data .one() event.isDefaultPrevented() .trigger() event.isImmediatePropagationStopped() .triggerHandler() event.isPropagationStopped() .unbind() event.namespace .undelegate() event.pageX event.pageY Form Events event.preventDefault() .blur() event.relatedTarget .change() event.result .focus() event.stopImmediatePropagation() .select() event.stopPropagation() .submit() event.target event.timeStamp Keyboard Events event.type .keydown() event.which .keypress() .keyup()

Effects
Mouse Events Basics
.hide() .show() .toggle() .animate() .clearQueue() .delay() .dequeue() jQuery.dequeue() jQuery.fx.interval jQuery.fx.off .queue() jQuery.queue() .stop() .fadeIn() .fadeOut() .fadeTo() .fadeToggle() .slideDown() .slideToggle() .slideUp()

Ajax
Global Ajax Event Handlers
.ajaxComplete() .ajaxError() .ajaxSend() .ajaxStart() .ajaxStop() .ajaxSuccess() jQuery.param() .serialize() .serializeArray()

Core
jQuery Object
jQuery() jQuery.noConflict() jQuery.sub() jQuery.when() jQuery.browser jQuery.contains() each jQuery.each() jQuery.extend() jQuery.globalEval() jQuery.grep() jQuery.inArray() jQuery.isArray() jQuery.isEmptyObject() jQuery.isFunction() jQuery.isNumeric() jQuery.isPlainObject() jQuery.isWindow() jQuery.isXMLDoc() jQuery.makeArray() jQuery.map() jQuery.merge() jQuery.noop() jQuery.now() jQuery.parseJSON() jQuery.parseXML() jQuery.proxy() jQuery.support jQuery.trim() jQuery.type() jQuery.unique()

Internals

Custom

Utilities

.jquery .context jQuery.error .length .pushStack() .selector deferred.always() deferred.done() deferred.fail() deferred.isRejected() deferred.isResolved() deferred.notify() deferred.notifyWith() deferred.pipe() deferred.progress() deferred.promise() deferred.reject() deferred.rejectWith() deferred.resolve() deferred.resolveWith() deferred.state() deferred.then() .promise()

Helper Functions

Deferred Object

Low-Level Interface
jQuery.ajax() jQuery.ajaxSetup() jQuery.get() jQuery.getJSON() jQuery.getScript() .load() jQuery.post()

Fading

Shorthand Methods

Sliding

jQuery.Callbacks() callbacks.add() callbacks.disable() callbacks.empty() callbacks.fire() callbacks.fired() callbacks.fireWith() DOM Element Methods callbacks.has() .get() callbacks.lock() .index() callbacks.locked() .size() callbacks.remove() toArray()

Callbacks Object

jQuery Quick API Reference (http://oscarotero.com/jquery)

Selectors
Basics
* .class element #id selector1, selectorN, ... parent > child ancestor descendant prev + next prev ~ siblings :animated :eq() :even :first :gt() :header :last :lt() :not() :odd

Attributes / CSS
Attribute
[name|="value"] [name*="value"] [name~="value"] [name$="value"] [name="value"] [name!="value" [name^="value"] [name] [name="value"][name2="value2"] :first-child :last-child :nth-child() :only-child :button :checkbox :checked :disabled :enabled :focus :file :image :input :password :radio :reset :selected :submit :text

Manipulation
Copying
.clone()

Traversing
Filtering
.eq() .filter() .first() .has() .is() .last() .map() .not() .slice()

Events
Browser Events
.error() .resize() .scroll() .click() .dblclick() .focusin() .focusout() Document Loading .hover() .holdReady() .mousedown() .load() .mouseenter() .ready() .mouseleave() .unload() .mousemove() .mouseout() Event Handler Attachment .mouseover() .bind() .mouseup() .delegate() .toggle() .die() Event Object .live() .off() event.currentTarget .on() event.data .one() event.isDefaultPrevented() .trigger() event.isImmediatePropagationStopped() .triggerHandler() event.isPropagationStopped() .unbind() event.namespace .undelegate() event.pageX event.pageY Form Events event.preventDefault() .blur() event.relatedTarget .change() event.result .focus() event.stopImmediatePropagation() .select() event.stopPropagation() .submit() event.target event.timeStamp Keyboard Events event.type .keydown() event.which .keypress() .keyup()

Effects
Mouse Events Basics
.hide() .show() .toggle() .animate() .clearQueue() .delay() .dequeue() jQuery.dequeue() jQuery.fx.interval jQuery.fx.off .queue() jQuery.queue() .stop() .fadeIn() .fadeOut() .fadeTo() .fadeToggle() .slideDown() .slideToggle() .slideUp()

Ajax
Global Ajax Event Handlers
.ajaxComplete() .ajaxError() .ajaxSend() .ajaxStart() .ajaxStop() .ajaxSuccess() jQuery.param() .serialize() .serializeArray()

Core
jQuery Object
jQuery() jQuery.noConflict() jQuery.sub() jQuery.when() jQuery.browser jQuery.contains() each jQuery.each() jQuery.extend() jQuery.globalEval() jQuery.grep() jQuery.inArray() jQuery.isArray() jQuery.isEmptyObject() jQuery.isFunction() jQuery.isNumeric() jQuery.isPlainObject() jQuery.isWindow() jQuery.isXMLDoc() jQuery.makeArray() jQuery.map() jQuery.merge() jQuery.noop() jQuery.now() jQuery.parseJSON() jQuery.parseXML() jQuery.proxy() jQuery.support jQuery.trim() jQuery.type() jQuery.unique()

Attributes

.attr() .prop() .removeAttr() .removeProp() .val() .addClass() .css() jQuery.cssHooks .hasClass() .removeClass() .toggleClass() .height() .innerHeight() .innerWidth() .outerHeight() .outerWidth() .width() .offset() .offsetParent() .position() .scrollLeft() .scrollTop() jQuery.data() .data() jQuery.hasData() jQuery.removeData() .removeData()

Internals

DOM Insertion, Around


.wrap() .wrapAll() .wrapInner()

Custom

Hierarchy

CSS

Utilities

.jquery .context jQuery.error .length .pushStack() .selector deferred.always() deferred.done() deferred.fail() deferred.isRejected() deferred.isResolved() deferred.notify() deferred.notifyWith() deferred.pipe() deferred.progress() deferred.promise() deferred.reject() deferred.rejectWith() deferred.resolve() deferred.resolveWith() deferred.state() deferred.then() .promise()

DOM Insertion, Inside


.append() .appendTo() .html() .prepend() .prependTo() .text()

Helper Functions

Deferred Object

Child Filters

Miscellaneous Traversing
.add() .andSelf() .contents() .end()

Basic Filters

Low-Level Interface
jQuery.ajax() jQuery.ajaxSetup() jQuery.get() jQuery.getJSON() jQuery.getScript() .load() jQuery.post()

Dimensions

Forms

DOM Insertion, Outside


.after() .before() .insertAfter() .insertBefore() .detach() .empty() .remove() .unwrap()

Tree Traversal
.children() .closest() .find() .next() .nextAll() .nextUntil() .parent() .parents() .parentsUntil() .prev() .prevAll() .prevUntil() .siblings()

Fading

Shorthand Methods

Offset

DOM Removal

Sliding

Content Filters
:contains() :empty :has() :parent :hidden :visible

DOM Replacement
.replaceAll() .replaceWith()

Visibility Filters

Data

jQuery.Callbacks() callbacks.add() callbacks.disable() callbacks.empty() callbacks.fire() callbacks.fired() callbacks.fireWith() DOM Element Methods callbacks.has() .get() callbacks.lock() .index() callbacks.locked() .size() callbacks.remove() toArray()

Callbacks Object

You might also like