Hi
Again its probably easy, but here I am stuck on checking for these in an input.
Can it be checked like this? Do I need to look at some other validation method for this?
Many thanks
M
Again its probably easy, but here I am stuck on checking for these in an input.
Can it be checked like this? Do I need to look at some other validation method for this?
Code:
if(( ! document.fmOrder.cdEmail.value == 0 ) && (does not contain an @ and one . in sequence))
{
errors.push("Please enter a valid email address");
}
if( errors.length > 0 )
{
alert(errors.join('\n'));
return false;
}
return true;
}
M
Comment