Validate form before submit jquery
You can mimic the default jQuery plugin behaviour as follows: Test if the form is valid; if not prevent the default action from occurring using preventDefault(): EDIT: this comes in handy if you want to fine-tune your validation test i.e. validating some controls conditionally.