I am using the jquery validation and i need to validate an email.
I use
$(\"#myForm\").validate({
rules:
email: {
Whats your server language? PHP or ASP?
This is the jQuery part:
$.ajax({
type: "POST",
url: "YourWebserviceOrWhatEver",
data: "{'Email':'your@ema.il'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
if(msg.EmailExists){
//Email exists
alert("This email already exists. Please select other");
}
else {
//Email doesn't exist yet
doSomething();
}
}
});