$(document).ready(function() {
//event:"blur",
$("#myform").validate({
submitHandler: function(form) {
alert(111);return;
//form.submit();
},
rules:{
email:{required:true,remote:"check-email.php"},
email1:{required:true}
},
messages:{
email:{remote:"请输入正确的验证码"},
email1:{remote:"email1"}
}
});
});
</script>
</head>
<body>
<form action="" method="post" name="myform" id="myform">
<input name="email" id="email" type="text" />
<input name="email1" id="email1" type="text" />
<input name="" type="submit" />
</form>
check-email.php
if($_GET['email']==1)echo "true";
else echo "false";