<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="../js/formValidate/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="../js/formValidate/formValidator-4.1.3.js" type="text/javascript"></script>
<script src="../js/formValidate/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({ formID: "form1", theme: "ArrowSolidBox", submitOnce: true,
onError:function(msg,obj,errorlist){
$("#errorlist").empty();
$.map(errorlist,function(msg){
$("#errorlist").append("<li>" + msg + "</li>")
});
alert(msg);
},
ajaxPrompt : '有数据正在异步验证,请稍等...'
});
$("#email").formValidator({
onShow:"请输入邮箱",
onFocus:"邮箱6-100个字符,输入正确了才能离开焦点",
onCorrect:"恭喜你,你输对了",
defaultValue:"@"}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onError:"你输入的邮箱格式不正确"});
}
</script>
</head>
<body>
<form action="" method="post" name="form1" id="form1">
<table border="0px" style="font-size:12px" width="730px">
<tr>
<td align="right" width="135px">用户名:</td>
<td width="265px"><input type="text" id="email" name="email" style="width:120px" /></td>
<td width="330px"><div id="emailTip" style="width:280px"></div></td>
</tr>
</table>
<ul id="errorlist"></ul>
</form>
</body>
</html>
$(document).read(
没有结束的后括号)