5、g: true }) $(".selector").validate({debug:true})[2] submitHandler 类型:Callback 默认:default(native)formsubmit 说明:当表单通过验证,提交表单。回调函数有个默认参数form$(".selector").validate({ submitHandler: function(form) { // do other stuff for a valid form form.submit(); }
7、dator) { var errors = validator.numberOfInvalids(); if (errors) { var message = errors == 1 ? 'You missed 1 field. It has been highlighted' : 'You missed ' + errors + ' fields. They have been highlighted'; $("div.error span").