/* 设置默认属性 */
$.validator.setDefaults({
submitHandler: function(form) { form.submit(); }
});
submitHandler:
通过验证后运行的函数,里面要加上表单提交的函数,否则表单不会提交
<script language= "JavaScript ">
<!--Begin
function appliy(){
document.form1.method= "post ";
document.form1.action= "appliy.asp ";
document.form1.submit();
return true;
}
function ali(){
document.form1.method= "post ";
document.form1.action= "ali.asp ";
document.form1.submit();
return true;
}
//End-->
</script>
</head>
<form name="form1">
<input type= "submit" name= "pev " value= "支付宝支付 " onClick= "appliy() ">
<input type= "submit " name= "next " value= "阿里巴巴 " onClick= "ali() ">
</form>
注意必须为submit,用button是提交不上的,哦