function checkEmail() {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frmSample.txtmailid.value)){
return (true)
}
alert("Invalid E-mail Address! Please re-enter.")
return (false)
}
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frmSample.txtmailid.value)){
return (true)
}
alert("Invalid E-mail Address! Please re-enter.")
return (false)
}
No comments:
Post a Comment