I used jquery validation (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) for form validation. The followings are some fragments of my code:
HTML:
<
I had the same problem, what I did is:
1) change the the submit button :
from :
to
(the save button is not going to submit the form when is click it).
2)change my validation script to:
when the "save" button is hit, it validates the form. if the validation is correct, then it's going to submit the form.