jQuery Validate - can I re-validate a group of fields after changing one?

Posted by Nathan Long on Stack Overflow See other posts from Stack Overflow or by Nathan Long
Published on 2009-09-04T10:39:59Z Indexed on 2010/04/07 2:43 UTC
Read the original article Hit count: 324

Filed under:
|

I'm using jQuery Validate and would like to re-validate a group of fields whenever one of them is changed (or possibly, whenever one of them validates successfully). My attempts so far just create infinite loops.

Is this possible, or does the plugin design preclude it?

(Specifically, I've got a method that requires at least X of group Y to be filled out, and as soon as that's true, I'd like all those fields to re-validate. Currently I'm clearing out their error messages with my own code, but that's a hack - it also hides unrelated validation problems until the form is re-submitted.)

© Stack Overflow or respective owner

Related posts about jquery-validate

Related posts about jQuery