Similar to this question, I’m wanting to run a function when an ajax form is successfully submitted, but I don’t have direct access to the initial ajax code that loads the form.
How would I check that the form was successful given that I can’t add code to the initial ajax success call?
$('#registration-form').submit( function() {
alert('registered successfully');
});
try binding .ajaxSuccess() to your element http://api.jquery.com/ajaxSuccess/