0
我正在使用jQuery驗證插件。它驗證成功,但在正確提交表單不提交後。jQuery驗證 - 不形式提交
下面是代碼:
jQuery.validator.setDefaults({
debug: true,
success: "valid"
});
$("#myform").validate({
rules: {
ip: {
required: true,
maxlength: 15,
minlength: 11
},
assert_code: {
required: true,
maxlength: 17,
minlength: 17
}
}
});
form example
<form id = "myform" method = "post" >
<input type = "text" name = "ip" id = "ip"/>
<input type = "text" name = "assert_cpde" id = "assert_code"/>
<input type = "submit" name = "submit" />
</form>
_正確提交表格沒有提交_請給我們的代碼? –