<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>fangz 表单验证器</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
.inputBoder{border: 2px solid red;}
</style>
<script type="text/javascript" src="formJs/jquery.js"></script>
<script type="text/javascript" src="formJs/validateForm.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<form action="index.html" οnsubmit="return Validator.validateForm(document.forms[0])" method="post">
<table width="100%">
<tr>
<td width="10%">姓名</td>
<td width="95%">
<input type="text" id="name" value="" require="true"/>
<span id="nameSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">密码</td>
<td width="95%">
<input type="text" id="pwd" value="" require="true"/>
<span id="pwdSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">重复密码</td>
<td width="95%">
<input type="text" id="repwd" value="" dataType="Repeat" toId="pwd" msg="两次密码不一致!"/>
<span id="repwdSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">年龄</td>
<td width="90%">
<input type="text" id="age" value="" dataType="Integer" msg="年龄只能输入数字!"/>
<span id="ageSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">手机号码</td>
<td width="90%">
<input type="text" id="moblie" value="" maxlength="12" dataType="Moblie" msg="手机号码格式不正确!"/>
<span id="moblieSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">email</td>
<td width="90%">
<input type="text" id="email" value="" dataType="Email" msg="您输入的Email格式不正确!"/>
<span id="emailSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">身份证</td>
<td width="90%">
<input type="text" id="idCard" value="" dataType="IdCard" maxlength="18" msg="您输入的身份证有误!"/>
<span id="idCardSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">中文</td>
<td width="90%">
<input type="text" id="chiness" value="" dataType="Chinese" msg="真实姓名只允许中文!"/>
<span id="chinessSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">英文</td>
<td width="90%">
<input type="text" id="english" value="" dataType="English" msg="英文名只允许英文字母"/>
<span id="englishSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">爱好</td>
<td width="90%">
<input type="checkbox" name="aiHao" value="1"/>游泳
<input type="checkbox" name="aiHao" value="2"/>打球
<input type="checkbox" name="aiHao" value="3" dataType="Group" min="2" max="2" msg="只能选择2个" require="true"/>跑步
<span id="aiHaoSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">url</td>
<td width="90%">
<input type="text" name="Url" id=Url value="" dataType="Url" msg="您输入的网址格式不正确!"/>
<span id="UrlSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">double</td>
<td width="90%">
<input type="text" name="Double" id=Double value="" max="2" dataType="Double" msg="只能两位小数!"/>
<span id="DoubleSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">Length</td>
<td width="90%">
<input type="text" name="Length" id=Length value="" min="2" max="2" dataType="ValueLength" msg="只能输入两位!"/>
<span id="LengthSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td colspan="4">
<input type="submit" value="提交"/>
<a href=" http://www.youweishop.com">有为商城</a>
<a href=" http://download.csdn.net/detail/fffgggzzz/5046171">下载地址</a>
</td>
</tr>
</table>
</form>
</body>
</html>
<html>
<head>
<title>fangz 表单验证器</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
.inputBoder{border: 2px solid red;}
</style>
<script type="text/javascript" src="formJs/jquery.js"></script>
<script type="text/javascript" src="formJs/validateForm.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<form action="index.html" οnsubmit="return Validator.validateForm(document.forms[0])" method="post">
<table width="100%">
<tr>
<td width="10%">姓名</td>
<td width="95%">
<input type="text" id="name" value="" require="true"/>
<span id="nameSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">密码</td>
<td width="95%">
<input type="text" id="pwd" value="" require="true"/>
<span id="pwdSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">重复密码</td>
<td width="95%">
<input type="text" id="repwd" value="" dataType="Repeat" toId="pwd" msg="两次密码不一致!"/>
<span id="repwdSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">年龄</td>
<td width="90%">
<input type="text" id="age" value="" dataType="Integer" msg="年龄只能输入数字!"/>
<span id="ageSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">手机号码</td>
<td width="90%">
<input type="text" id="moblie" value="" maxlength="12" dataType="Moblie" msg="手机号码格式不正确!"/>
<span id="moblieSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">email</td>
<td width="90%">
<input type="text" id="email" value="" dataType="Email" msg="您输入的Email格式不正确!"/>
<span id="emailSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">身份证</td>
<td width="90%">
<input type="text" id="idCard" value="" dataType="IdCard" maxlength="18" msg="您输入的身份证有误!"/>
<span id="idCardSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">中文</td>
<td width="90%">
<input type="text" id="chiness" value="" dataType="Chinese" msg="真实姓名只允许中文!"/>
<span id="chinessSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">英文</td>
<td width="90%">
<input type="text" id="english" value="" dataType="English" msg="英文名只允许英文字母"/>
<span id="englishSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">爱好</td>
<td width="90%">
<input type="checkbox" name="aiHao" value="1"/>游泳
<input type="checkbox" name="aiHao" value="2"/>打球
<input type="checkbox" name="aiHao" value="3" dataType="Group" min="2" max="2" msg="只能选择2个" require="true"/>跑步
<span id="aiHaoSpan" style="color: red;">*</span>
</td>
</tr>
<tr>
<td width="10%">url</td>
<td width="90%">
<input type="text" name="Url" id=Url value="" dataType="Url" msg="您输入的网址格式不正确!"/>
<span id="UrlSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">double</td>
<td width="90%">
<input type="text" name="Double" id=Double value="" max="2" dataType="Double" msg="只能两位小数!"/>
<span id="DoubleSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td width="10%">Length</td>
<td width="90%">
<input type="text" name="Length" id=Length value="" min="2" max="2" dataType="ValueLength" msg="只能输入两位!"/>
<span id="LengthSpan" style="color: red;"></span>
</td>
</tr>
<tr>
<td colspan="4">
<input type="submit" value="提交"/>
<a href=" http://www.youweishop.com">有为商城</a>
<a href=" http://download.csdn.net/detail/fffgggzzz/5046171">下载地址</a>
</td>
</tr>
</table>
</form>
</body>
</html>