May 29, 2012
jQuery Validate – Success event?
Question by Probocop
I am using the jQuery Validate plugin on my site, and then submitting the form via ajax. Is there an event I can use when the entire form is valid?
Answer by Starx
There is no event for this. Just check the status using a simple if statement.
if($("form").valid()) {
//go ahead
}
But, if you are trying to have a workaround solution to catch the valid event, you can do something like this
$("form").submit(fucntion() {
if($(this).valid()) {
//go ahead
} else {
//do some error handling
}
});