jQuery.post( ) .done( ) and success:

jQuery used to ONLY have the callback functions for success and error and complete. Then, they decided to support promises with the jqXHR object and that’s when they added .done(), .fail(), .always(), etc… in the spirit of the promise API. These new methods serve much the same purpose as the callbacks but in a different … Read more