function fnCheckNotNull()
{
var m = document.getElementById("<%=txtErrorEmail.ClientID%>").value.replace(/^\s+|\s+$/g,"")
if (m != "")
{
if (m.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
{
return true;
}
else
{
alert("Invalid Email Address");
document.getElementById("<%=txtErrorEmail.ClientID%>").focus();
return false;
}
}
}
Saturday, September 1, 2007
JavaScript+Email Validation
Posted by
Rutts
at
11:25 AM
Labels: Java Scripts
Subscribe to:
Post Comments (Atom)


0 comments:
Post a Comment