我在下面使用的代码正在正确验证,但在字段有效时未提交:
<script>
$(document).ready(function(){
$("#verifyformDesktop").validate({
errorContainer: "#messageBox1, #messageBox2",
errorLabelContainer: "#messageBox1 ul",
wrapper: "li", debug:true,
submitHandler: function(form) {
form.submit();
}
})
});
</script>
<form name="verifyformDesktop" id="verifyformDesktop" action="php/verify.php" method="post">
...
<input type="submit" name="submit" id="submit" value="ENTER">
也许提交处理程序?