var validator = $("#form1").validate({ rules: { tbLoginID: { required: true, remote: "CheckExistLoginID.aspx" }, tbPassWord: { required: true, minlength: 5 }, tbUserName: "required", tbEmail: { //required: true, email: true } }, messages: { tbLoginID: { required: "请输入帐号!", remote: jQuery.format("{0} 已经存在!") }, tbPassWord: { required: "请输入密码!", minlength: jQuery.format("密码到少输入 {0} 字符!") }, tbUserName: "请输入真实姓名!", tbEmail: { //required: "Please enter a valid email address", email: "请输入正确的邮件地址!" } } 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lee576/archive/2008/12/03/3439127.aspx