Easy Tutorial
❮ Sel Input Enabled Misc Callbacks ❯

jQuery jQuery.Deferred() Method

jQuery Miscellaneous Methods


Definition and Usage

$.Deferred() is a constructor that returns a chainable utility object for registering multiple callbacks and invoking the callback queue, passing any synchronous or asynchronous function's success or failure status. Note: 1. The $.Deferred() constructor creates a new Deferred object. jQuery.Deferred can take an optional function that is called before the constructor returns and is passed a new Deferred object as the function's first argument. For example, the called function can use deferred.then() to attach callbacks.


Syntax

Parameter Description
beforeStart Function( Deferred deferred ) type A function called before the constructor returns

jQuery Miscellaneous Methods

❮ Sel Input Enabled Misc Callbacks ❯