在提交表单之前添加多个步骤。像:
注册页面:
步骤1和步骤2是单独的DIV(在下一次单击时显示/隐藏)
答案 0 :(得分:5)
您可以尝试使用此JS代码段:
var formToValidate = $('place the id of the form, that I want to validate');
var validator = new Validation(formToValidate);
if(validator.validate()) {
/* The logic, that you want to execute if you pass the validation. */
......
......
}
祝你好运!