Afternoon
I use the following code to determine 'is this a vlid email address'
Can anybody assit me writing a function which checks for more than one? These addresses will be entered into a text area seperated by a comer in the following format:
abc@somelocation.com, cde@someOtherPlace.com
In short my code does not allow for the validation of multiple addresses seperated by a commer in the one <input type="text"> tag
TYIA
I use the following code to determine 'is this a vlid email address'
Code:
email=document.userAdmin.uEmail.value;
var expression=/^([a-zA-Z0-9\-\._]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3})$/;
if(!(expression.test(email)) )
{
alert("Please enter a valid email addres to proceed");
document.userAdmin.uEmail.select();
document.userAdmin.uEmail.focus();
return (false);
}
Can anybody assit me writing a function which checks for more than one? These addresses will be entered into a text area seperated by a comer in the following format:
abc@somelocation.com, cde@someOtherPlace.com
In short my code does not allow for the validation of multiple addresses seperated by a commer in the one <input type="text"> tag
TYIA