jQuery Validator addMethod
Hi All,
I'm using the jQuery validator plugin with a custom validation method added using the addMethod(name, function, message) method.
This works fine and all validates correctly. The problem I have is my form has a next and previous button (both are submit buttons), when i click next I want the functionality to work as it currently does, when I click previous I want to disable the validation of the form.
Can anyone point me in the right direction of stopping form validation for one of the buttons?
I considered removing the custom validator method in the onclick of the previous button but there is no removeMethod() method that I can find, so the only other thing I can think of is unwiring the validator from the form completely, as of yet I haven't worked out how to do this.
Thanks in advance
Wes