Aidam-Unlimited
asked on
jQuery Validate: Event if all valid and form submitted
Hi,
I'm using jQuery Validate plugin from here - http://bassistance.de/jquery-plugins/jquery-plugin-validation/
The goal is to fire those two events only after jQuery validates all required fields and form has been submitted.
My code below does not work properly.
Any idea how to make it properly?
Thanks in advance
I'm using jQuery Validate plugin from here - http://bassistance.de/jquery-plugins/jquery-plugin-validation/
The goal is to fire those two events only after jQuery validates all required fields and form has been submitted.
My code below does not work properly.
Any idea how to make it properly?
Thanks in advance
$("form").validate({
success: function(html) {
$("form").submit(function(){
$("input[type='submit']").attr("disabled", true).val("Please wait...");
$(".stillloading").delay(4000).fadeIn(200);
});
}
});
How did you resolve it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
//Objecting
Thanks
Restarting auto-close process on Aidam-Unlimited's behalf after posting own solution.
ModCorlEEone
Community Support Moderator
ModCorlEEone
Community Support Moderator
You're on another page, perhaps with the same url but an other new page
You may use ajax to submit your form silently and after the submission, display a message and go away
Check this plugin : http://jquery.malsup.com/form/#ajaxSubmit