jQuery validation per multiple fieldsets, how to use different event to trigger validation per secti

Posted by Jesse on Stack Overflow See other posts from Stack Overflow or by Jesse
Published on 2009-11-12T16:00:36Z Indexed on 2010/03/18 23:11 UTC
Read the original article Hit count: 1136

Filed under:
|
|

Hi All!

I have a really, really long form (about 300 fields) that I broke down into different sections using this slick jQuery plugin Form Wizard. If you group your form into different fieldsets, the FormWizard will automagically display one section at a time, with a Next hyperlink to take you to the next section:
<a id="step0Next" class="next" href="#">Next ></a>

My question is this: Using the jQuery Validation plugin, how can I validate each fieldset when a user clicks Next, and so forth, instead of using the Submit button. Put differently, how can I change the trigger event from Submit to six different hyperlinks for six separate sections?

Thanks for helping this newb out.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation