api.jquery.com
Open in
urlscan Pro
2606:4700::6812:d40c
Public Scan
Submitted URL: http://api.jquery.com/
Effective URL: https://api.jquery.com/
Submission: On March 05 via api from JP — Scanned from JP
Effective URL: https://api.jquery.com/
Submission: On March 05 via api from JP — Scanned from JP
Form analysis
1 forms found in the DOMGET https://api.jquery.com/
<form role="search" class="searchform tsmb-form tsmb-form--slash" action="https://api.jquery.com/" method="get" data-origin="https://typesense.jquery.com" data-collection="jquery_com" data-key="Zh8mMgohXECel9wjPwqT7lekLSG3OCgz" data-foot="true"
data-group="true">
<input type="search" name="s" aria-label="Search jQuery API Documentation" value="" placeholder="Search" autocomplete="off">
<div role="listbox" hidden=""></div>
<button type="submit" class="visuallyhidden"></button>
<svg viewBox="0 0 12 12" width="20" height="20" aria-hidden="true" class="tsmb-icon-close" style="display: none;">
<path d="M9 3L3 9M3 3L9 9"></path>
</svg>
</form>
Text Content
* jQuery * jQuery UI * jQuery Mobile * Sizzle * QUnit * Plugins * Contribute * CLA * Style Guides * Bug Triage * Code * Documentation * Web Sites * Events * Support * Learning Center * IRC/Chat * Forums * Stack Overflow * Commercial Support * OpenJS Foundation * Join * Members * jQuery Team * Governance * Conduct * Donate JQUERY API DOCUMENTATION Navigation * Download * API Documentation * Blog * Plugins * Browser Support JQUERY API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. If you're new to jQuery, we recommend that you check out the jQuery Learning Center. If you're updating to a newer version of jQuery, be sure to read the release notes published on our blog. If you're coming from a version prior 1.9, you should check out the 1.9 Upgrade Guide as well. Note that this is the API documentation for jQuery core. Other projects have API docs in other locations: * jQuery UI API docs * jQuery Mobile API docs * QUnit API docs -------------------------------------------------------------------------------- Traversing > Miscellaneous Traversing .ADD() Create a new jQuery object with elements added to the set of matched elements. Traversing > Miscellaneous Traversing .ADDBACK() Add the previous set of elements on the stack to the current set, optionally filtered by a selector. Attributes | Manipulation > Class Attribute | CSS .ADDCLASS() Adds the specified class(es) to each element in the set of matched elements. Manipulation > DOM Insertion, Outside .AFTER() Insert content, specified by the parameter, after each element in the set of matched elements. Ajax > Global Ajax Event Handlers AJAXCOMPLETE EVENT Register a handler to be called when Ajax requests complete. This is an AjaxEvent. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXCOMPLETE() Register a handler to be called when Ajax requests complete. This is an AjaxEvent. Ajax > Global Ajax Event Handlers AJAXERROR EVENT Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXERROR() Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. Ajax > Global Ajax Event Handlers AJAXSEND EVENT Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXSEND() Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. Ajax > Global Ajax Event Handlers AJAXSTART EVENT Register a handler to be called when the first Ajax request begins. This is an Ajax Event. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXSTART() Register a handler to be called when the first Ajax request begins. This is an Ajax Event. Ajax > Global Ajax Event Handlers AJAXSTOP EVENT Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXSTOP() Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. Ajax > Global Ajax Event Handlers AJAXSUCCESS EVENT Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. Deprecated > Deprecated 3.5 | Ajax > Global Ajax Event Handlers .AJAXSUCCESS() Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. Selectors > Basic ALL SELECTOR (“*”) Selects all elements. Deprecated > Deprecated 1.8 | Traversing > Miscellaneous Traversing | Removed .ANDSELF() Add the previous set of elements on the stack to the current set. Effects > Custom .ANIMATE() Perform a custom animation of a set of CSS properties. Selectors > Basic Filter | Selectors > jQuery Extensions :ANIMATED SELECTOR Select all elements that are in the progress of an animation at the time the selector is run. Manipulation > DOM Insertion, Inside .APPEND() Insert content, specified by the parameter, to the end of each element in the set of matched elements. Manipulation > DOM Insertion, Inside .APPENDTO() Insert every element in the set of matched elements to the end of the target. Attributes | Manipulation > General Attributes .ATTR() Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. Selectors > Attribute ATTRIBUTE CONTAINS PREFIX SELECTOR [NAME|=”VALUE”] Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-). Selectors > Attribute ATTRIBUTE CONTAINS SELECTOR [NAME*=”VALUE”] Selects elements that have the specified attribute with a value containing a given substring. Selectors > Attribute ATTRIBUTE CONTAINS WORD SELECTOR [NAME~=”VALUE”] Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. Selectors > Attribute ATTRIBUTE ENDS WITH SELECTOR [NAME$=”VALUE”] Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive. Selectors > Attribute ATTRIBUTE EQUALS SELECTOR [NAME=”VALUE”] Selects elements that have the specified attribute with a value exactly equal to a certain value. Selectors > Attribute | Selectors > jQuery Extensions ATTRIBUTE NOT EQUAL SELECTOR [NAME!=”VALUE”] Select elements that either don’t have the specified attribute, or do have the specified attribute but not with a certain value. Selectors > Attribute ATTRIBUTE STARTS WITH SELECTOR [NAME^=”VALUE”] Selects elements that have the specified attribute with a value beginning exactly with a given string. Manipulation > DOM Insertion, Outside .BEFORE() Insert content, specified by the parameter, before each element in the set of matched elements. Deprecated > Deprecated 3.0 | Events > Event Handler Attachment .BIND() Attach a handler to an event for the elements. Events > Form Events | Forms BLUR EVENT Bind an event handler to the “blur” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Form Events | Forms .BLUR() Bind an event handler to the “blur” event, or trigger that event on an element. Selectors > Form | Selectors > jQuery Extensions :BUTTON SELECTOR Selects all button elements and elements of type button. Callbacks Object CALLBACKS.ADD() Add a callback or a collection of callbacks to a callback list. Callbacks Object CALLBACKS.DISABLE() Disable a callback list from doing anything more. Callbacks Object CALLBACKS.DISABLED() Determine if the callbacks list has been disabled. Callbacks Object CALLBACKS.EMPTY() Remove all of the callbacks from a list. Callbacks Object CALLBACKS.FIRE() Call all of the callbacks with the given arguments. Callbacks Object CALLBACKS.FIRED() Determine if the callbacks have already been called at least once. Callbacks Object CALLBACKS.FIREWITH() Call all callbacks in a list with the given context and arguments. Callbacks Object CALLBACKS.HAS() Determine whether or not the list has any callbacks attached. If a callback is provided as an argument, determine whether it is in a list. Callbacks Object CALLBACKS.LOCK() Lock a callback list in its current state. Callbacks Object CALLBACKS.LOCKED() Determine if the callbacks list has been locked. Callbacks Object CALLBACKS.REMOVE() Remove a callback or a collection of callbacks from a callback list. Events > Form Events | Forms CHANGE EVENT Bind an event handler to the “change” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Form Events .CHANGE() Bind an event handler to the “change” event, or trigger that event on an element. Selectors > Form | Selectors > jQuery Extensions :CHECKBOX SELECTOR Selects all elements of type checkbox. Selectors > Form :CHECKED SELECTOR Matches all elements that are checked or selected. Selectors > Hierarchy CHILD SELECTOR (“PARENT > CHILD”) Selects all direct child elements specified by “child” of elements specified by “parent”. Traversing > Tree Traversal .CHILDREN() Get the children of each element in the set of matched elements, optionally filtered by a selector. Selectors > Basic CLASS SELECTOR (“.CLASS”) Selects all elements with the given class. Effects > Custom | Data | Utilities .CLEARQUEUE() Remove from the queue all items that have not yet been run. Events > Mouse Events CLICK EVENT Bind an event handler to the “click” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .CLICK() Bind an event handler to the “click” event, or trigger that event on an element. Manipulation > Copying .CLONE() Create a deep copy of the set of matched elements. Traversing > Tree Traversal .CLOSEST() For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. Selectors > Content Filter | Selectors > jQuery Extensions :CONTAINS() SELECTOR Select all elements that contain the specified text. Traversing > Miscellaneous Traversing .CONTENTS() Get the children of each element in the set of matched elements, including text and comment nodes. Deprecated > Deprecated 1.10 | Internals | Properties > Properties of jQuery Object Instances | Removed .CONTEXT The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. Events > Mouse Events CONTEXTMENU EVENT Bind an event handler to the “contextmenu” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .CONTEXTMENU() Bind an event handler to the “contextmenu” event, or trigger that event on an element. CSS | Manipulation > Style Properties .CSS() Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element. Data | Miscellaneous > Data Storage .DATA() Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements. Events > Mouse Events DBLCLICK EVENT Bind an event handler to the “dblclick” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .DBLCLICK() Bind an event handler to the “dblclick” event, or trigger that event on an element. Deferred Object DEFERRED.ALWAYS() Add handlers to be called when the Deferred object is either resolved or rejected. Deferred Object DEFERRED.CATCH() Add handlers to be called when the Deferred object is rejected. Deferred Object DEFERRED.DONE() Add handlers to be called when the Deferred object is resolved. Deferred Object DEFERRED.FAIL() Add handlers to be called when the Deferred object is rejected. Deferred Object | Deprecated > Deprecated 1.7 | Removed DEFERRED.ISREJECTED() Determine whether a Deferred object has been rejected. Deferred Object | Deprecated > Deprecated 1.7 | Removed DEFERRED.ISRESOLVED() Determine whether a Deferred object has been resolved. Deferred Object DEFERRED.NOTIFY() Call the progressCallbacks on a Deferred object with the given args. Deferred Object DEFERRED.NOTIFYWITH() Call the progressCallbacks on a Deferred object with the given context and args. Deferred Object | Deprecated > Deprecated 1.8 DEFERRED.PIPE() Utility method to filter and/or chain Deferreds. Deferred Object DEFERRED.PROGRESS() Add handlers to be called when the Deferred object generates progress notifications. Deferred Object DEFERRED.PROMISE() Return a Deferred’s Promise object. Deferred Object DEFERRED.REJECT() Reject a Deferred object and call any failCallbacks with the given args. Deferred Object DEFERRED.REJECTWITH() Reject a Deferred object and call any failCallbacks with the given context and args. Deferred Object DEFERRED.RESOLVE() Resolve a Deferred object and call any doneCallbacks with the given args. Deferred Object DEFERRED.RESOLVEWITH() Resolve a Deferred object and call any doneCallbacks with the given context and args. Deferred Object DEFERRED.STATE() Determine the current state of a Deferred object. Deferred Object DEFERRED.THEN() Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. Effects > Custom .DELAY() Set a timer to delay execution of subsequent items in the queue. Deprecated > Deprecated 3.0 | Events > Event Handler Attachment .DELEGATE() Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. Effects > Custom | Data | Utilities .DEQUEUE() Execute the next function on the queue for the matched elements. Selectors > Hierarchy DESCENDANT SELECTOR (“ANCESTOR DESCENDANT”) Selects all elements that are descendants of a given ancestor. Manipulation > DOM Removal .DETACH() Remove the set of matched elements from the DOM. Deprecated > Deprecated 1.7 | Events > Event Handler Attachment | Removed .DIE() Remove event handlers previously attached using .live() from the elements. Selectors > Form :DISABLED SELECTOR Selects all elements that are disabled. Miscellaneous > Collection Manipulation | Traversing .EACH() Iterate over a jQuery object, executing a function for each matched element. Selectors > Basic ELEMENT SELECTOR (“ELEMENT”) Selects all elements with the given tag name. Manipulation > DOM Removal .EMPTY() Remove all child nodes of the set of matched elements from the DOM. Selectors > Content Filter :EMPTY SELECTOR Select all elements that have no children (including text nodes). Selectors > Form :ENABLED SELECTOR Selects all elements that are enabled. Traversing > Miscellaneous Traversing .END() End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. Traversing > Filtering .EQ() Reduce the set of matched elements to the one at the specified index. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :EQ() SELECTOR Select the element at index n within the matched set. Events > Browser Events ERROR EVENT Bind an event handler to the “error” event, or trigger that event on an element. Events > Browser Events | Deprecated > Deprecated 1.8 | Removed .ERROR() Bind an event handler to the “error” event, or trigger that event on an element. Traversing > Filtering .EVEN() Reduce the set of matched elements to the even ones in the set, numbered from zero. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :EVEN SELECTOR Selects even elements, zero-indexed. See also :odd. Events > Event Object EVENT.CURRENTTARGET The current DOM element within the event bubbling phase. Events > Event Object EVENT.DATA An optional object of data passed to an event method when the current executing handler is bound. Events > Event Object | Events EVENT.DELEGATETARGET The element where the currently-called jQuery event handler was attached. Events > Event Object EVENT.ISDEFAULTPREVENTED() Returns whether event.preventDefault() was ever called on this event object. Events > Event Object EVENT.ISIMMEDIATEPROPAGATIONSTOPPED() Returns whether event.stopImmediatePropagation() was ever called on this event object. Events > Event Object EVENT.ISPROPAGATIONSTOPPED() Returns whether event.stopPropagation() was ever called on this event object. Events > Event Object EVENT.METAKEY Indicates whether the META key was pressed when the event fired. Events > Event Object EVENT.NAMESPACE The namespace specified when the event was triggered. Events > Event Object EVENT.PAGEX The mouse position relative to the left edge of the document. Events > Event Object EVENT.PAGEY The mouse position relative to the top edge of the document. Events > Event Object EVENT.PREVENTDEFAULT() If this method is called, the default action of the event will not be triggered. Events > Event Object EVENT.RELATEDTARGET The other DOM element involved in the event, if any. Events > Event Object EVENT.RESULT The last value returned by an event handler that was triggered by this event, unless the value was undefined. Events > Event Object EVENT.STOPIMMEDIATEPROPAGATION() Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. Events > Event Object EVENT.STOPPROPAGATION() Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. Events > Event Object EVENT.TARGET The DOM element that initiated the event. Events > Event Object EVENT.TIMESTAMP The difference in milliseconds between the time the browser created the event and January 1, 1970. Events > Event Object EVENT.TYPE Describes the nature of the event. Events > Event Object EVENT.WHICH For key or mouse events, this property indicates the specific key or button that was pressed. Effects > Fading .FADEIN() Display the matched elements by fading them to opaque. Effects > Fading .FADEOUT() Hide the matched elements by fading them to transparent. Effects > Fading .FADETO() Adjust the opacity of the matched elements. Effects | Effects > Fading .FADETOGGLE() Display or hide the matched elements by animating their opacity. Selectors > Form | Selectors > jQuery Extensions :FILE SELECTOR Selects all elements of type file. Traversing > Filtering .FILTER() Reduce the set of matched elements to those that match the selector or pass the function’s test. Traversing > Tree Traversal .FIND() Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. Effects > Custom .FINISH() Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements. Traversing > Filtering .FIRST() Reduce the set of matched elements to the first in the set. Selectors > Child Filter :FIRST-CHILD SELECTOR Selects all elements that are the first child of their parent. Selectors > Child Filter :FIRST-OF-TYPE SELECTOR Selects all elements that are the first among siblings of the same element name. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :FIRST SELECTOR Selects the first matched DOM element. Events > Form Events | Forms FOCUS EVENT Bind an event handler to the “focus” event, or trigger that event on an element. Selectors > Basic Filter | Selectors > Form :FOCUS SELECTOR Selects element if it is currently focused. Deprecated > Deprecated 3.3 | Events > Form Events | Forms .FOCUS() Bind an event handler to the “focus” event, or trigger that event on an element. Events > Form Events | Forms FOCUSIN EVENT Bind an event handler to the “focusin” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Form Events | Forms .FOCUSIN() Bind an event handler to the “focusin” event, or trigger that event on an element. Events > Form Events | Forms FOCUSOUT EVENT Bind an event handler to the “focusout” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Form Events | Forms .FOCUSOUT() Bind an event handler to the “focusout” event, or trigger that event on an element. Miscellaneous > DOM Element Methods .GET() Retrieve the DOM elements matched by the jQuery object. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :GT() SELECTOR Select all elements at an index greater than index within the matched set. Traversing > Filtering .HAS() Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. Selectors > Attribute HAS ATTRIBUTE SELECTOR [NAME] Selects elements that have the specified attribute, with any value. Selectors > Content Filter | Selectors > jQuery Extensions :HAS() SELECTOR Selects elements which contain at least one element that matches the specified selector. Attributes | Manipulation > Class Attribute | CSS .HASCLASS() Determine whether any of the matched elements are assigned the given class. Selectors > Basic Filter | Selectors > jQuery Extensions :HEADER SELECTOR Selects all elements that are headers, like h1, h2, h3 and so on. CSS | Dimensions | Manipulation > Style Properties .HEIGHT() Get the current computed height for the first element in the set of matched elements or set the height of every matched element. Selectors > jQuery Extensions | Selectors > Visibility Filter :HIDDEN SELECTOR Selects all elements that are hidden. Effects > Basics .HIDE() Hide the matched elements. Deprecated > Deprecated 3.3 | Events > Mouse Events .HOVER() Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. Attributes | Manipulation > DOM Insertion, Inside .HTML() Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element. Selectors > Basic ID SELECTOR (“#ID”) Selects a single element with the given id attribute. Selectors > Form | Selectors > jQuery Extensions :IMAGE SELECTOR Selects all elements of type image. Miscellaneous > DOM Element Methods .INDEX() Search for a given element from among the matched elements. CSS | Dimensions | Manipulation > Style Properties .INNERHEIGHT() Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element. CSS | Dimensions | Manipulation > Style Properties .INNERWIDTH() Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element. Selectors > Form | Selectors > jQuery Extensions :INPUT SELECTOR Selects all input, textarea, select and button elements. Manipulation > DOM Insertion, Outside .INSERTAFTER() Insert every element in the set of matched elements after the target. Manipulation > DOM Insertion, Outside .INSERTBEFORE() Insert every element in the set of matched elements before the target. Traversing > Filtering .IS() Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. Core JQUERY() Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string. Internals | Properties > Properties of jQuery Object Instances .JQUERY A string containing the jQuery version number. Ajax > Low-Level Interface JQUERY.AJAX() Perform an asynchronous HTTP (Ajax) request. Ajax > Low-Level Interface JQUERY.AJAXPREFILTER() Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). Ajax > Low-Level Interface JQUERY.AJAXSETUP() Set default values for future Ajax requests. Its use is not recommended. Ajax > Low-Level Interface JQUERY.AJAXTRANSPORT() Creates an object that handles the actual transmission of Ajax data. Deprecated > Deprecated 1.3 | Removed | Utilities JQUERY.BOXMODEL States if the current page, in the user’s browser, is being rendered using the W3C CSS Box Model. Deprecated > Deprecated 1.3 | Properties > Properties of the Global jQuery Object | Removed | Utilities JQUERY.BROWSER Contains flags for the useragent, read from navigator.userAgent. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead. Callbacks Object JQUERY.CALLBACKS() A multi-purpose callbacks list object that provides a powerful way to manage callback lists. Utilities JQUERY.CONTAINS() Check to see if a DOM element is a descendant of another DOM element. CSS JQUERY.CSSHOOKS Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties. CSS | Manipulation > Style Properties JQUERY.CSSNUMBER An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values. Data | Utilities JQUERY.DATA() Store arbitrary data associated with the specified element and/or return the value that was set. Deferred Object JQUERY.DEFERRED() A factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. Data | Utilities JQUERY.DEQUEUE() Execute the next function on the queue for the matched element. Utilities JQUERY.EACH() A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function’s arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. Internals JQUERY.ERROR() Takes a string and throws an exception containing it. CSS JQUERY.ESCAPESELECTOR() Escapes any character that has a special meaning in a CSS selector. Utilities JQUERY.EXTEND() Merge the contents of two or more objects together into the first object. Utilities JQUERY.FN.EXTEND() Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods. Effects > Custom | Deprecated > Deprecated 3.0 | Properties > Properties of the Global jQuery Object JQUERY.FX.INTERVAL The rate (in milliseconds) at which animations fire. Effects > Custom | Properties > Properties of the Global jQuery Object JQUERY.FX.OFF Globally disable all animations. Ajax > Shorthand Methods JQUERY.GET() Load data from the server using a HTTP GET request. Ajax > Shorthand Methods JQUERY.GETJSON() Load JSON-encoded data from the server using a GET HTTP request. Ajax > Shorthand Methods JQUERY.GETSCRIPT() Load a JavaScript file from the server using a GET HTTP request, then execute it. Utilities JQUERY.GLOBALEVAL() Execute some JavaScript code globally. Utilities JQUERY.GREP() Finds the elements of an array which satisfy a filter function. The original array is not affected. Data JQUERY.HASDATA() Determine whether an element has any jQuery data associated with it. Core | Deprecated > Deprecated 3.2 | Events > Document Loading | Properties > Properties of the Global jQuery Object JQUERY.HOLDREADY() Holds or releases the execution of jQuery’s ready event. Manipulation JQUERY.HTMLPREFILTER() Modify and filter HTML strings passed through jQuery manipulation methods. Utilities JQUERY.INARRAY() Search for a specified value within an array and return its index (or -1 if not found). Deprecated > Deprecated 3.2 | Utilities JQUERY.ISARRAY() Determine whether the argument is an array. Utilities JQUERY.ISEMPTYOBJECT() Check to see if an object is empty (contains no enumerable properties). Deprecated > Deprecated 3.3 | Utilities JQUERY.ISFUNCTION() Determines if its argument is callable as a function. Deprecated > Deprecated 3.3 | Utilities JQUERY.ISNUMERIC() Determines whether its argument represents a JavaScript number. Utilities JQUERY.ISPLAINOBJECT() Check to see if an object is a plain object (created using “{}” or “new Object”). Deprecated > Deprecated 3.3 | Utilities JQUERY.ISWINDOW() Determine whether the argument is a window. Utilities JQUERY.ISXMLDOC() Check to see if a DOM node is within an XML document (or is an XML document). Utilities JQUERY.MAKEARRAY() Convert an array-like object into a true JavaScript array. Utilities JQUERY.MAP() Translate all items in an array or object to new array of items. Utilities JQUERY.MERGE() Merge the contents of two arrays together into the first array. Core | Miscellaneous > Setup Methods JQUERY.NOCONFLICT() Relinquish jQuery’s control of the $ variable. Utilities JQUERY.NOOP() An empty function. Deprecated > Deprecated 3.3 | Utilities JQUERY.NOW() Return a number representing the current time. Miscellaneous > Collection Manipulation | Forms | Ajax > Helper Functions JQUERY.PARAM() Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties. Utilities JQUERY.PARSEHTML() Parses a string into an array of DOM nodes. Deprecated > Deprecated 3.0 | Utilities JQUERY.PARSEJSON() Takes a well-formed JSON string and returns the resulting JavaScript value. Utilities JQUERY.PARSEXML() Parses a string into an XML document. Ajax > Shorthand Methods JQUERY.POST() Send data to the server using a HTTP POST request. Deprecated > Deprecated 3.3 | Events > Event Handler Attachment | Utilities JQUERY.PROXY() Takes a function and returns a new one that will always have a particular context. Data | Utilities JQUERY.QUEUE() Show or manipulate the queue of functions to be executed on the matched element. Core | Events > Document Loading | Properties > Properties of the Global jQuery Object JQUERY.READY A Promise-like object (or “thenable”) that resolves when the document is ready. Core JQUERY.READYEXCEPTION() Handles errors thrown synchronously in functions wrapped in jQuery(). Data | Utilities JQUERY.REMOVEDATA() Remove a previously-stored piece of data. Effects > Custom JQUERY.SPEED Creates an object containing a set of properties ready to be used in the definition of custom animations. Core | Deprecated > Deprecated 1.7 | Removed JQUERY.SUB() Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object. Deprecated > Deprecated 1.9 | Properties > Properties of the Global jQuery Object | Utilities JQUERY.SUPPORT A collection of properties that represent the presence of different browser features or bugs; intended for jQuery’s internal use. Deprecated > Deprecated 3.5 | Utilities JQUERY.TRIM() Remove the whitespace from the beginning and end of a string. Deprecated > Deprecated 3.3 | Utilities JQUERY.TYPE() Determine the internal JavaScript [[Class]] of an object. Deprecated > Deprecated 3.0 | Utilities JQUERY.UNIQUE() Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. Utilities JQUERY.UNIQUESORT() Sorts an array or an array-like object of DOM elements, in place, with the duplicates removed. Note that this only works on arrays/array-likes of DOM elements, not strings or numbers. Core | Deferred Object JQUERY.WHEN() Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events. Events > Keyboard Events KEYDOWN EVENT Bind an event handler to the “keydown” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Keyboard Events .KEYDOWN() Bind an event handler to the “keydown” event, or trigger that event on an element. Events > Keyboard Events KEYPRESS EVENT Bind an event handler to the “keypress” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Keyboard Events .KEYPRESS() Bind an event handler to the “keypress” event, or trigger that event on an element. Events > Keyboard Events KEYUP EVENT Bind an event handler to the “keyup” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Keyboard Events .KEYUP() Bind an event handler to the “keyup” event, or trigger that event on an element. Selectors > Basic Filter :LANG() SELECTOR Selects all elements of the specified language. Traversing > Filtering .LAST() Reduce the set of matched elements to the final one in the set. Selectors > Child Filter :LAST-CHILD SELECTOR Selects all elements that are the last child of their parent. Selectors > Child Filter :LAST-OF-TYPE SELECTOR Selects all elements that are the last among siblings of the same element name. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :LAST SELECTOR Selects the last matched element. Properties > Properties of jQuery Object Instances .LENGTH The number of elements in the jQuery object. Deprecated > Deprecated 1.7 | Events > Event Handler Attachment | Removed .LIVE() Attach an event handler for all elements which match the current selector, now and in the future. Ajax > Shorthand Methods .LOAD() Load data from the server and place the returned HTML into the matched elements. Events > Document Loading LOAD EVENT Bind an event handler to the “load” event, or trigger that event on an element. Deprecated > Deprecated 1.8 | Events > Document Loading | Removed .LOAD() Bind an event handler to the “load” event, or trigger that event on an element. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :LT() SELECTOR Select all elements at an index less than index within the matched set. Traversing > Filtering .MAP() Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. Events > Mouse Events MOUSEDOWN EVENT Bind an event handler to the “mousedown” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEDOWN() Bind an event handler to the “mousedown” event, or trigger that event on an element. Events > Mouse Events MOUSEENTER EVENT Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEENTER() Bind an event handler to the “mouseenter” event, or trigger that event on an element. Events > Mouse Events MOUSELEAVE EVENT Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSELEAVE() Bind an event handler to the “mouseleave” event, or trigger that event on an element. Events > Mouse Events MOUSEMOVE EVENT Bind an event handler to the “mousemove” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEMOVE() Bind an event handler to the “mousemove” event, or trigger that event on an element. Events > Mouse Events MOUSEOUT EVENT Bind an event handler to the “mouseout” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEOUT() Bind an event handler to the “mouseout” event, or trigger that event on an element. Events > Mouse Events MOUSEOVER EVENT Bind an event handler to the “mouseover” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEOVER() Bind an event handler to the “mouseover” event, or trigger that event on an element. Events > Mouse Events MOUSEUP EVENT Bind an event handler to the “mouseup” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Mouse Events .MOUSEUP() Bind an event handler to the “mouseup” event, or trigger that event on an element. Selectors > Attribute MULTIPLE ATTRIBUTE SELECTOR [NAME=”VALUE”][NAME2=”VALUE2″] Matches elements that match all of the specified attribute filters. Selectors > Basic MULTIPLE SELECTOR (“SELECTOR1, SELECTOR2, SELECTORN”) Selects the combined results of all the specified selectors. Traversing > Tree Traversal .NEXT() Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. Selectors > Hierarchy NEXT ADJACENT SELECTOR (“PREV + NEXT”) Selects all next elements matching “next” that are immediately preceded by a sibling “prev”. Selectors > Hierarchy NEXT SIBLINGS SELECTOR (“PREV ~ SIBLINGS”) Selects all sibling elements that follow after the “prev” element, have the same parent, and match the filtering “siblings” selector. Traversing > Tree Traversal .NEXTALL() Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. Traversing > Tree Traversal .NEXTUNTIL() Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. Traversing > Filtering | Traversing > Miscellaneous Traversing .NOT() Remove elements from the set of matched elements. Selectors > Basic Filter :NOT() SELECTOR Selects all elements that do not match the given selector. Selectors > Child Filter :NTH-CHILD() SELECTOR Selects all elements that are the nth-child of their parent. Selectors > Child Filter :NTH-LAST-CHILD() SELECTOR Selects all elements that are the nth-child of their parent, counting from the last element to the first. Selectors > Child Filter :NTH-LAST-OF-TYPE() SELECTOR Selects all the elements that are the nth-child of their parent in relation to siblings with the same element name, counting from the last element to the first. Selectors > Child Filter :NTH-OF-TYPE() SELECTOR Selects all elements that are the nth child of their parent in relation to siblings with the same element name. Traversing > Filtering .ODD() Reduce the set of matched elements to the odd ones in the set, numbered from zero. Selectors > Basic Filter | Deprecated > Deprecated 3.4 | Selectors > jQuery Extensions :ODD SELECTOR Selects odd elements, zero-indexed. See also :even. Events > Event Handler Attachment .OFF() Remove an event handler. CSS | Offset | Manipulation > Style Properties .OFFSET() Get the current coordinates of the first element, or set the coordinates of every element, in the set of matched elements, relative to the document. Offset | Traversing > Tree Traversal .OFFSETPARENT() Get the closest ancestor element that is positioned. Events > Event Handler Attachment .ON() Attach an event handler function for one or more events to the selected elements. Events > Event Handler Attachment .ONE() Attach a handler to an event for the elements. The handler is executed at most once per element per event type. Selectors > Child Filter :ONLY-CHILD SELECTOR Selects all elements that are the only child of their parent. Selectors > Child Filter :ONLY-OF-TYPE SELECTOR Selects all elements that have no siblings with the same element name. CSS | Dimensions | Manipulation > Style Properties .OUTERHEIGHT() Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer height of every matched element. CSS | Dimensions | Manipulation > Style Properties .OUTERWIDTH() Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer width of every matched element. Traversing > Tree Traversal .PARENT() Get the parent of each element in the current set of matched elements, optionally filtered by a selector. Selectors > Content Filter | Selectors > jQuery Extensions :PARENT SELECTOR Select all elements that have at least one child node (either an element or text). Traversing > Tree Traversal .PARENTS() Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. Traversing > Tree Traversal .PARENTSUNTIL() Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. Selectors > Form | Selectors > jQuery Extensions :PASSWORD SELECTOR Selects all elements of type password. CSS | Offset | Manipulation > Style Properties .POSITION() Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. Manipulation > DOM Insertion, Inside .PREPEND() Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. Manipulation > DOM Insertion, Inside .PREPENDTO() Insert every element in the set of matched elements to the beginning of the target. Traversing > Tree Traversal .PREV() Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector. Traversing > Tree Traversal .PREVALL() Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector, in the reverse document order. Traversing > Tree Traversal .PREVUNTIL() Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. Deferred Object .PROMISE() Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. Attributes | Manipulation > General Attributes .PROP() Get the value of a property for the first element in the set of matched elements or set one or more properties for every matched element. Internals .PUSHSTACK() Add a collection of DOM elements onto the jQuery stack. Effects > Custom | Data | Utilities .QUEUE() Show or manipulate the queue of functions to be executed on the matched elements. Selectors > Form | Selectors > jQuery Extensions :RADIO SELECTOR Selects all elements of type radio. Events > Document Loading .READY() Specify a function to execute when the DOM is fully loaded. Manipulation > DOM Removal .REMOVE() Remove the set of matched elements from the DOM. Attributes | Manipulation > General Attributes .REMOVEATTR() Remove an attribute from each element in the set of matched elements. Attributes | Manipulation > Class Attribute | CSS .REMOVECLASS() Remove a single class, multiple classes, or all classes from each element in the set of matched elements. Data | Miscellaneous > Data Storage .REMOVEDATA() Remove a previously-stored piece of data. Attributes | Manipulation > General Attributes .REMOVEPROP() Remove a property for the set of matched elements. Manipulation > DOM Replacement .REPLACEALL() Replace each target element with the set of matched elements. Manipulation > DOM Replacement .REPLACEWITH() Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. Selectors > Form | Selectors > jQuery Extensions :RESET SELECTOR Selects all elements of type reset. Events > Browser Events RESIZE EVENT Bind an event handler to the “resize” event, or trigger that event on an element. Events > Browser Events | Deprecated > Deprecated 3.3 .RESIZE() Bind an event handler to the “resize” event, or trigger that event on an element. Selectors > Basic Filter :ROOT SELECTOR Selects the element that is the root of the document. Events > Browser Events SCROLL EVENT Bind an event handler to the “scroll” event, or trigger that event on an element. Events > Browser Events | Deprecated > Deprecated 3.3 .SCROLL() Bind an event handler to the “scroll” event, or trigger that event on an element. CSS | Offset | Manipulation > Style Properties .SCROLLLEFT() Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element. CSS | Offset | Manipulation > Style Properties .SCROLLTOP() Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element. Events > Form Events | Forms SELECT EVENT Bind an event handler to the “select” event, or trigger that event on an element. Deprecated > Deprecated 3.3 | Events > Form Events .SELECT() Bind an event handler to the “select” event, or trigger that event on an element. Selectors > Form | Selectors > jQuery Extensions :SELECTED SELECTOR Selects all elements that are selected. Deprecated > Deprecated 1.7 | Internals | Properties > Properties of jQuery Object Instances | Removed .SELECTOR A selector representing selector passed to jQuery(), if any, when creating the original set. Forms | Ajax > Helper Functions .SERIALIZE() Encode a set of form elements as a string for submission. Forms | Ajax > Helper Functions .SERIALIZEARRAY() Encode a set of form elements as an array of names and values. Effects > Basics .SHOW() Display the matched elements. Traversing > Tree Traversal .SIBLINGS() Get the siblings of each element in the set of matched elements, optionally filtered by a selector. Deprecated > Deprecated 1.8 | Miscellaneous > DOM Element Methods | Removed .SIZE() Return the number of elements in the jQuery object. Traversing > Filtering .SLICE() Reduce the set of matched elements to a subset specified by a range of indices. Effects > Sliding .SLIDEDOWN() Display the matched elements with a sliding motion. Effects > Sliding .SLIDETOGGLE() Display or hide the matched elements with a sliding motion. Effects > Sliding .SLIDEUP() Hide the matched elements with a sliding motion. Effects > Custom .STOP() Stop the currently-running animation on the matched elements. Events > Form Events | Forms SUBMIT EVENT Bind an event handler to the “submit” event, or trigger that event on an element. Selectors > Form | Selectors > jQuery Extensions :SUBMIT SELECTOR Selects all elements of type submit. Deprecated > Deprecated 3.3 | Events > Form Events .SUBMIT() Bind an event handler to the “submit” event, or trigger that event on an element. Selectors > Basic Filter :TARGET SELECTOR Selects the target element indicated by the fragment identifier of the document’s URI. Manipulation > DOM Insertion, Inside .TEXT() Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements. Selectors > Form | Selectors > jQuery Extensions :TEXT SELECTOR Selects all input elements of type text. Miscellaneous > DOM Element Methods .TOARRAY() Retrieve all the elements contained in the jQuery set, as an array. Effects > Basics .TOGGLE() Display or hide the matched elements. Deprecated > Deprecated 1.8 | Events > Mouse Events | Removed .TOGGLE() Bind two or more handlers to the matched elements, to be executed on alternate clicks. Attributes | Manipulation > Class Attribute | CSS .TOGGLECLASS() Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument. Events > Event Handler Attachment .TRIGGER() Execute all handlers and behaviors attached to the matched elements for the given event type. Events > Event Handler Attachment .TRIGGERHANDLER() Execute all handlers attached to an element for an event. Deprecated > Deprecated 3.0 | Events > Event Handler Attachment .UNBIND() Remove a previously-attached event handler from the elements. Deprecated > Deprecated 3.0 | Events > Event Handler Attachment .UNDELEGATE() Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. Utilities .UNIQUESORT() Sorts a jQuery object of DOM elements, in place, with the duplicates removed. Note that this only works on jQuery objects consisting of DOM elements, not strings or numbers. Events > Document Loading UNLOAD EVENT Bind an event handler to the “unload” event, or trigger that event on an element. Deprecated > Deprecated 1.8 | Events > Document Loading | Removed .UNLOAD() Bind an event handler to the “unload” event, or trigger that event on an element. Manipulation > DOM Insertion, Around | Manipulation > DOM Removal .UNWRAP() Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. Attributes | Forms | Manipulation > General Attributes .VAL() Get the current value of the first element in the set of matched elements or set the value of every matched element. Selectors > jQuery Extensions | Selectors > Visibility Filter :VISIBLE SELECTOR Selects all elements that are visible. CSS | Dimensions | Manipulation > Style Properties .WIDTH() Get the current computed width for the first element in the set of matched elements or set the width of every matched element. Manipulation > DOM Insertion, Around .WRAP() Wrap an HTML structure around each element in the set of matched elements. Manipulation > DOM Insertion, Around .WRAPALL() Wrap an HTML structure around all elements in the set of matched elements. Manipulation > DOM Insertion, Around .WRAPINNER() Wrap an HTML structure around the content of each element in the set of matched elements. * Ajax * Global Ajax Event Handlers * Helper Functions * Low-Level Interface * Shorthand Methods * Attributes * Callbacks Object * Core * CSS * Data * Deferred Object * Deprecated * Deprecated 1.3 * Deprecated 1.7 * Deprecated 1.8 * Deprecated 1.9 * Deprecated 1.10 * Deprecated 3.0 * Deprecated 3.2 * Deprecated 3.3 * Deprecated 3.4 * Deprecated 3.5 * Dimensions * Effects * Basics * Custom * Fading * Sliding * Events * Browser Events * Document Loading * Event Handler Attachment * Event Object * Form Events * Keyboard Events * Mouse Events * Forms * Internals * Manipulation * Class Attribute * Copying * DOM Insertion, Around * DOM Insertion, Inside * DOM Insertion, Outside * DOM Removal * DOM Replacement * General Attributes * Style Properties * Miscellaneous * Collection Manipulation * Data Storage * DOM Element Methods * Setup Methods * Offset * Properties * Properties of jQuery Object Instances * Properties of the Global jQuery Object * Removed * Selectors * Attribute * Basic * Basic Filter * Child Filter * Content Filter * Form * Hierarchy * jQuery Extensions * Visibility Filter * Traversing * Filtering * Miscellaneous Traversing * Tree Traversal * Utilities * Version * Version 1.0 * Version 1.0.4 * Version 1.1 * Version 1.1.2 * Version 1.1.3 * Version 1.1.4 * Version 1.2 * Version 1.2.3 * Version 1.2.6 * Version 1.3 * Version 1.4 * Version 1.4.1 * Version 1.4.2 * Version 1.4.3 * Version 1.4.4 * Version 1.5 * Version 1.5.1 * Version 1.6 * Version 1.7 * Version 1.8 * Version 1.9 * Version 1.11 & 2.1 * Version 1.12 & 2.2 * Version 3.0 * Version 3.1 * Version 3.2 * Version 3.3 * Version 3.4 * Version 3.5 * Version 3.6 * Version 3.7 BOOKS * Learning jQuery Fourth Edition Karl Swedberg and Jonathan Chaffer * jQuery in Action Bear Bibeault, Yehuda Katz, and Aurelio De Rosa * jQuery Succinctly Cody Lindley * Learning Center * Forum * Twitter * IRC * GitHub Copyright 2024 OpenJS Foundation and jQuery contributors. All rights reserved. See jQuery License for more information. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. OpenJS Foundation Terms of Use, Privacy, and Cookie Policies also apply. Web hosting by Digital Ocean | CDN by Fastly | Powered by WordPress