ajax - jquery: is there a fail handler for $.post in Jquery? -


What is a successful handler for when $ .post succeeds, what happens if it fails? Is there any handler that we can use for this matter, so that we can inform the user that something is not doing well?

$ Post is not according to a specific error handler for the method.

What do you have to do, if you want to both success and unsuccessful handler, low-level $ Using the Ajax method, this documentation can be found here:

  $. Ajax ({type: "POST", url: "some.php", success: function (html) {/ * content of success here}, error: function () {/ * error stuff is here} );  

Comments