How do I remove jQuery validation from a form?

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2008-12-12T16:28:02Z Indexed on 2010/03/25 19:03 UTC
Read the original article Hit count: 383

Filed under:
|
|

I'm using the jQuery validation plugin to validate a form, and I'd like to remove the validation and submit the form if a certain link is clicked.

I am submitting form with javascript like jQuery('form#listing').submit(), so I must remove the validation rules/function with javascript.

The problem is that I can't figure out how to do this. I've tried things like jQuery('form#listing').validate({}); and jQuery('form#listing').validate = null, but with no luck.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation