deferred.resolve()

Resolve a Deferred object and call any doneCallbacks with the given args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is resolved, any doneCallbacks added by deferred.then() or deferred.done() are called. Callbacks are executed in the order they were added. Each callback is passed th

Descendant selector (“ancestor descendant”)

Selects all elements that are descendants of a given ancestor. A descendant of an element could be a child, grandchild, great-grandchild, and so on, of that element. jQuery( "ancestor descendant" ) version added: 1.0 Examples: Mark all inputs that are descendants of a form with a dotted blue

.eq()

Reduce the set of matched elements to the one at the specified index. Given a jQuery object that represents a set of DOM elements, the .eq() method constructs a new jQuery object from one element within that set. The supplied index identifies the position of this element in the set. Consider a page with a simple list on it: <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> <li>

deferred.promise()

Return a Deferred's Promise object. The deferred.promise() method allows an asynchronous function to prevent other code from interfering with the progress or status of its internal request. The Promise exposes only the Deferred methods needed to attach additional handlers or determine the state (then, done, fail, always, pipe, progress, state and promise), but not ones that change the state (resolve, reject, notify, resolveWith, rejectWith, and notify

deferred.rejectWith()

Reject a Deferred object and call any failCallbacks with the given context and args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is rejected, any failCallbacks added by deferred.then or deferred.fail are called. Callbacks are executed in the order they were added. Each callback is pa

deferred.state()

Determine the current state of a Deferred object. The deferred.state() method returns a string representing the current state of the Deferred object. The Deferred object can be in one of three states: "pending": The Deferred object is not yet in a completed state (neither "rejected" nor "resolved"). "resolved": The Deferred object is in the resolved state, meaning that either deferred.resolve() or deferred.resolveWith() has been called for the objec

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

deferred.reject()

Reject a Deferred object and call any failCallbacks with the given args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is rejected, any failCallbacks added by deferred.then() or deferred.fail() are called. Callbacks are executed in the order they were added. Each callback is passed the

deferred.resolveWith()

Resolve a Deferred object and call any doneCallbacks with the given context and args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is resolved, any doneCallbacks added by deferred.then or deferred.done are called. Callbacks are executed in the order they were added. Each callback is p

deferred.progress()

Add handlers to be called when the Deferred object generates progress notifications. The deferred.progress() method accepts one or more arguments, all of which can be either a single function or an array of functions. When the Deferred generates progress notifications by calling notify or notifyWith, the progressCallbacks are called. Since deferred.progress() returns the Deferred object, other methods of the Deferred object can be chained to this one.