Javascript Email Validation
function checkEmail(obj)
{
var Regex=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if (!Regex.test(obj.value))
alert("Invalid E-mail Address! Please re-enter.")
else
alert("valid email address.")
}
Check out Demo
0 comments:
Subscribe to:
Post Comments (Atom)