I am using the jquery validation and i need to validate an email.
I use
$(\"#myForm\").validate({
rules:
email: {
Well, this works for me...
$('[id$=txtEmail]').rules("add", { required: true, email: true,
remote:function(){
var checkit={
type: "POST",
url: WebServicePathComplete+"VerifyEmail",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: "{'email':'" +$('[id$=txtEmail]').val() + "'}"
};
return checkit;
}
});
note that I have a input with the id 'txtMail'