I am using the jQuery validation plugin. Great stuff! I want to migrate my existing ASP.NET solution to use jQuery instead of the ASP.NET validators. I am m
$.validator.methods.checkEmail = function( value, element ) { return this.optional( element ) || /[a-z]+@[a-z]+\.[a-z]+/.test( value ); } $("#myForm").validate({ rules: { email: { required: true, checkEmail: true } }, messages: { email: "incorrect email" } });