Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery deferred.state() method

jQuery deferred.state() method

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods


Definition and Usage

The deferred.state() function is used to determine the current state of a Deferred object.

Note: The deferred.state() method returns a string representing the current state of the Deferred object. A Deferred object can be in one of three states:


Syntax

This method does not accept any parameters.

deferred.state()


jQuery Miscellaneous MethodsjQuery Miscellaneous Methods