<script src= "Jquery1.7.js" type= "Text/javascript" ></script>
<script src= "Jquery.validate.js" type= "Text/javascript" ></script>
<script src= "Messages_cn.js" type= "Text/javascript" ></script>
<script type= "Text/javascript" >
$ (function () {
$ (' #form1 '). Validate ({
Rules: {
Txtuser: {required:true, minlength:6},
Txtpassword: {required:true, minlength:6},
Txtconfirm: {required:true, Minlength:6, Equalto: "#password"},
Txthomepage: {required:true, url:true},
Txtbirthday: {required:true, dateiso:true},
Txtxueya: {required:true, digits:true},
Txtemail: {required:true, email:true}
},
Errorshow:function (Error, Element) {
Error.appendto (element.siblings (' span '));
}
})
})
</script>
<body>
<form action= "" Id= "Form1" >
<table>
<tr>
<td> User name:</td>
<td><input name= "Txtuser" type= "text"/><span>*</span> </td>
</tr>
<tr>
<td> Password:</td>
< Td><input name= "txtpassword" id= "password" type= "text"/><span>*</span> </td>
</tr>
<tr>
<td> Confirm Password:</td>
< Td><input name= "txtconfirm" type= "text"/><span>*</span> </td>
</tr>
<tr>
<td> Home: </td>
<td><input name= "Txthomepage" type= "text"/><span>*</span> </td >
</tr>
<tr>
<td> Birthday:</td>
<td>< Input name= "Txtbirthday" type= "text"/><span>*</span> </td>
</tr>
<tr>
<td> blood pressure:</td>
< Td><input name= "Txtxueya" type= "text"/><span>*</span> </td>
</tr>
<tr>
<td> Email:</td>
<td><input name= "Txtemail" type= "text"/><span>*</span> </td>
</tr>
</table>
</form>
</body>