日期:2014-05-16  浏览次数:20345 次

jquery.validate.js IE下验证不正常的啊 在线等!!!
jquery.validate.js IE下当点击提交时  没有验证就直接提交了   咋回事呢?????????   FF下正常
测试代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="jquery-1.6.2.min.js"></script>
<script language="javascript" src="jquery.validate.js"></script>
<title>Jquery-表单验证测试</title>
</head>
<script language="javascript">
$(document).ready(function() { 
$("#form1").validate({ 
//++++++++++++++验证规则++++++++++++
rules: { 
user: "required", 
email: { 
required: true, 
email: true 
},
pwd: { 
required: true, 
minlength: 6
},
repwd: { 
required: true, 
minlength: 6,
equalTo: "#pwd"
},
tel: {
required: true,
digits: true 
},
qq: {
required: true,
digits: true 
},
fax: {
required: true,
digits: true 
},
url: {
required: true,
url: true 
},
content: "required"
}, 
//++++++++++++提示信息+++++++++++++++
messages: { 
user: "请输入姓名", 
email: { 
required: "请输入Email地址", 
email: "请输入正确的email地址" 
},
pwd: { 
required: "请输入密码", 
minlength: jQuery.format("密码长度大于{6}个字符") 
},
repwd: { 
required: "请输入确认密码", 
minlength: jQuery.format("确认密码长度大于{6}个字符"), 
equalTo: "两次输入的密码不一致"
},
tel: { 
required: "请输入手机号码", 
digits: "请输入正确的手机号码" 
},
qq: { 
required: "请输入QQ号码", 
digits: "QQ号码不能含有非法字符" 
},
fax: {
required:  "请输入传真号码",
digits: "输入的传真号码格式不对" 
},
url: {
required: "请输入网址",
url: "输入的网址格式不对" 
},
content: "请输入留言内容" 

}); 
}); 
</script>
<body>
<form id="form1" name="form1" method="post" action="ok.php">
  <table width="60%" height="369" border="1" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="2"><div align="center"><strong>表 单 验 证</strong></div></td>
    </tr>
    <tr>
      <td width="24%">用户名称:</td>
      <td width="76%"><label>
        <input type="text" name="user" id="user" />
      </label></td>
    </tr>
    <tr>
      <td>邮箱地址:</td>
      <td><label>
        <input type="text" name="email" id="email" />
      <