Step by Step validation with jquery validation plugin

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-04-09T10:22:11Z Indexed on 2010/04/14 22:13 UTC
Read the original article Hit count: 195

Filed under:
|
|
|
|

I know its been asked many times already but no one could come up with solution so far.

The idea is to have one form separated into few steps and validate each step on next click of the button. I know jquery validation plugin is offering quite complicated way of doing it with accordion but can anyone come up with a simple solution something like

var stepOne = {
        rules: {
            fieldname1: "required",
            fieldname2: "required",

        }
    }

$("form").validate(stepOne); //onclick 

hope someone could suggest the best way of doing it.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation