复制代码 代码如下: <BR>// $(function () {<BR>// $('#a').validate({<BR>// rules: {<BR>// username: { required: true, minlength: 6, maxlength: 12 },<BR>// email: { required: true, email: true }<BR>// },<BR>// errorshow: function (error, element) {<BR>// error.appendTo(element.siblings('span'));<BR>// } <P>// }) <P><BR> // })<BR> $(function () {<BR> $('#a').validate({<BR> rules: {<BR> username: { required: true, minlength: 6, maxlength: 12 },<BR> email: { required: true, email: true },<BR> pwd: { required: true, rangelength:[6,6] },<BR> again: { required: true, equalTo: ($('#aa')) }, //这里一定是id <BR> birthday:{date:true},<BR> blood:{digits:true}<BR> },<BR> errorshow: function (error, element) {<BR> error.appendTo(element.siblings('span'));<BR> } <P> }) <P> })<BR> 用户名:邮箱:密码:确认密码:生日:血压: