Open In App

jQuery Deferred .promise() method

This .promise() method in JQuery Returns a Promise object to be observed when certain type actions bounded to the collection, queued or not, are ended.

Syntax:



.promise([type][, target])

Return Value: This method returns a dynamically generated Promise which is resolved once actions bounded to the collection, queued or not, have finished.



There are two examples discussed below:

Article Tags :