简体   繁体   中英

Step by Step validation with jquery validation plugin

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.

我不知道你到底得到了什么,但为什么不完全单独表格,将所有的价值放在一起,最后一次把它们全部发送出去?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM