function hasWhiteSpaceE()
{
var s = document.getElementById('txtEmail').value;
reWhiteSpace = new RegExp(/^\s+$/);
// Check for white space
if (reWhiteSpace.test(s)) {
alert("Please Check Your Fields For Spaces");
document.getElementById('txtEmail').value="";
document.getElementById('txtEmail').focus();
return false;
}
}
unction for
No comments:
Post a Comment