Open In App

JQuery .Deferred() method

This JQuery.Deferred() method in JQuery  is a function which returns the utility object with methods which can register multiple callbacks to queues.  It calls the callback queues, and relay the success or failure state of any synchronous or asynchronous function.

Syntax:



jQuery.Deferred([beforeStart])

Return Value: This method creates and returns a new deferred object.



There are two examples discussed below:


Article Tags :