mr_evans2u
10-14-2003, 08:35 PM
When checking this form I need to make sure that either "whitelist_from" or "whitelist_to" is present and only at the beginning. Here is what I have but it is not working. Can any one help?
thanks
if (!item.value.match (/whitelist_from/)||(!item.value.match(/whitelist_to/)))
{
alert ('"whitelist_from" or "whitelist_to" must be included at the beginning');
item.focus();
return false;
}
thanks
if (!item.value.match (/whitelist_from/)||(!item.value.match(/whitelist_to/)))
{
alert ('"whitelist_from" or "whitelist_to" must be included at the beginning');
item.focus();
return false;
}