deferred.pipe()

Utility method to filter and/or chain Deferreds. Deprecation Notice:As of jQuery 1.8, the deferred.pipe() method is deprecated. The deferred.then() method, which replaces it, should be used instead. The deferred.pipe() method returns a new promise that filters the status and values of a deferred through a function. The doneFilter and failFilter functions filter the original deferred's resolved / rejected status and values. As of jQuery 1.7, the method

event.data

An optional object of data passed to an event method when the current executing handler is bound. event.data version added: 1.1 Examples: Within a for loop, pass the value of i to the .on() method so that the current iteration's value is preserved. <!doctype html> <html l

.mousedown()

Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "mousedown", handler) in the first variation, and .trigger( "mousedown" ) in the second. The mousedown event is sent to an element when the mouse pointer is over the element, and the mouse button is pressed. Any HTML element can receive this event. For example, consider the HTML: <div id="target"> Click here </d

:disabled selector

Selects all elements that are disabled. As with other pseudo-class selectors (those that begin with a ":"), it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare $(':disabled') is equivalent to $('*:disabled'), so $('input:disabled') or similar should be used instead. Although their resulting selections are usually the same, the :disabled selector is subtly

.remove()

Remove the set of matched elements from the DOM. Similar to .empty(), the .remove() method takes elements out of the DOM. Use .remove() when you want to remove the element itself, as well as everything inside it. In addition to the elements themselves, all bound events and jQuery data associated with the elements are removed. To remove the elements without removing data and events, use .detach() instead. Consider the following HTML: <div class="con

.empty()

Remove all child nodes of the set of matched elements from the DOM. This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This is because, according to the DOM specification, any string of text within an element is considered a child node of that element. Consider the following HTML: <div class="container"> <div class="hello">Hello</div> <div class="goodbye"&g

jQuery.merge()

Merge the contents of two arrays together into the first array. The $.merge() operation forms an array that contains all elements from the two arrays. The orders of items in the arrays are preserved, with items from the second array appended. The $.merge() function is destructive. It alters the length and numeric index properties of the first object to include items from the second. If you need the original first array, make a copy of it before callin

.zIndex()

Get the z-index for an element. The .zIndex() method is useful for finding the z-index of an element, regardless of whether the z-index is set directly on the element or on one of its ancestors. In order to determine the z-index, this method will start at the specified element and walk up the DOM until it finds an element that is positioned and has a z-index set. If no such element is found, then the method will return a value of 0. This method assume

jQuery.inArray()

Search for a specified value within an array and return its index (or -1 if not found). The $.inArray() method is similar to JavaScript's native .indexOf() method in that it returns -1 when it doesn't find a match. If the first element within the array matches value, $.inArray() returns 0. Because JavaScript treats 0 as loosely equal to false (i.e. 0 == false, but 0 !== false), to check for the presence of value within array, you need to check if it's

.show()

Display the matched elements, using custom effects. This plugin extends jQuery's built-in .show() method. If jQuery UI is not loaded, calling the .show() method may not fail directly, as the method still exists. However, the expected behavior will not occur. .show( effect [, options ] [, duration ] [, complete ] ) effect