I have this bit of code to make sure an email address is entered
Code:
if (theForm.frmEmail.value == "")
{
alert("Please enter a value for the \"Email Address\" field.");
theForm.frmEmail.focus();
return (false);
}
It only checks to make sure something is entered. You can just enter 1 character and it accepts it as an email address. How can I change this bit of code so that it at least checks there is an "@" entered?
|