Karen Slon
Karen Slon

Reputation: 233

Which jQuery version introduced .done fro $.ajax calls?

Which jQuery version introduced .done for $.ajax calls?

I need to use .done in $.ajax call, but latest version 1.10.1 does not seem to include .done.

Thank you

Upvotes: 1

Views: 528

Answers (2)

Anthony Accioly
Anthony Accioly

Reputation: 22481

jqXHR object (and the .done method) was introduced in jQuery 1.5. Quoting the official documentation:

Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are deprecated as of jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.

.done() was neither removed or deprecated, it works as expected in jQuery 1.10.1.


Working example

Upvotes: 0

Satpal
Satpal

Reputation: 133453

Its added in version: 1.5, See the deferred.done docs and it is still supported

Upvotes: 2

Related Questions