I am using .submit() to submit my form over ajax periodically, but I want the user to see that the form is being saved with a spinning wheel and then ‘Saved!’ upon success. Is there a success trigger for .submit() in jQuery?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a manual
$.post()request instead of a.submit(). The$.post()has a success callback.You’ll have to fill in the details of the
$.post()(the target URL) and.serialize()your form’s elements.