[jQuery] Validation Plugin - hows to only fire on form submit?
Is it possible to only run validation when the form is submitted? I am
using version 1.1 of the validation plugin (http://bassistance.de/
jquery-plugins/jquery-plugin-validation/)
I want to do something only when the form is submitted, so tried this
basic code:
$("form").validate(
{
showErrors: function(errors)
{
alert("should only fire on submit");
}
})
The alert shows when I try to submit the form, and also when I click
the page after dismissing the alert.
Test page: http://www.texotela.co.uk/validation.php