var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(txtEmail.value)) {
alert('Please provide a valid email address');
txtEmail.focus();
return false;
}
use this javascript function to validate email addresses.
0 comments:
Post a Comment