function ValidateEmail(mail,spanID)
{
var email = mail;
var emailFormat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}(comnetorgeduintmilgovarpabizaeronamecoopinfopromuseum))$/;
if (!email.match(emailFormat))
{
document.getElementById(spanID).innerHTML = "Invalid Mail ID -"+mail;
}
}
No comments:
Post a Comment