Md Uddin wrote:It didn't work.
Sorry about your keyboard. (Please
read this for an explanation.)
I am not quite sure about the difference between ajaxSubmit() and ajaxForm()
ajaxSubmit() submits the form immediately as an Ajax request. ajaxForm() instruments the form such that when it gets submitted it will route through an Ajax request rather than perform a "normal" form submission.
If I use $('#myForm').submit(); instead of $('#myForm').ajaxSubmit(); it does work.
Again "it doesn't work" isn't helpful.
If you are expecting these two statements to do that same thing, then that's the issue. .submit() will cause a normal page submission, while ajaxSubmit() will cause the form to be submitted through an Ajax request.