コードをコピー コードは次のとおりです: </p> <p> $(function () { </p> <p> $('#form1').validate({ <br> rules: { <br> txtUser: { required: true, minlength: 6 }, <br> txtPassword: { required: true, minlength: 6 }, <br> txtConfirm: { required: true, minlength: 6, equalTo: "#password" }, <br> txtHomePage: { required: true, url: true }, <br> txtBirthday: { required: true, dateISO: true }, <br> txtXueYa: { required: true, digits: true }, <br> txtEmail: { required: true, email: true } <br> }, <br> errorshow: function (error, element) { <br> error.appendTo(element.siblings('span')); <br> } <br> }) <br> }) <br><br> 用户名: * 密码: * 确认密码: * 主页: * 生日: * 血压: * 邮箱: *