Validate subset of a form using jQuery Validate plugin
Posted
by Andrew Davey
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Davey
Published on 2010-04-14T10:17:26Z
Indexed on
2010/04/14
10:23 UTC
Read the original article
Hit count: 644
jQuery
|jquery-validate
My HTML form has a number of divs that are the steps of a wizard. Upon clicking a "next" button I want to validate just the active div. I'm using the jQuery.Validate.js plugin.
Each div has an ID, so I want a way to say something like:
wizardForm.validate().element('#first-step :input')
but this only validates the first input, not all of them. How can I validate all inputs within a div?
© Stack Overflow or respective owner