解决方法
您可以使用
.validate()
的
submitHandler
选项,如下所示:
@H_301_6@$("form").validate({
submitHandler: function(form) {
//this runs when the form validated successfully
form.submit(); //submit it the form
}
});
如果你想在没有通过验证的情况下运行某些东西,那么还有一个invalidHandler.