I have following form:
From your example, I am not clear about the control flow of your page, however, I am assuming you are calling the submit()
method somewhere. After you have validated the form and before you submit it, check it's validation with the valid()
method. Your code should look something like this:
$("#form").validate();
if ($('#form').valid())
$('#form').submit();