novice2004
Programmer
How should this should be done with an array help?
Thank you.
if(form.elements["state"].value != '3' || form.elements["state"].value != '6' || form.elements["state"].value != '23' ||
form.elements["state"].value != '33' || form.elements["state"].value != '34' || form.elements["state"].value != '41' ||
form.elements["state"].value != '42' || form.elements["state"].value != '43' || form.elements["state"].value != '46' ||
form.elements["state"].value != '49' || form.elements["state"].value != '50' || form.elements["state"].value != '52' ||
form.elements["state"].value != '64')
{
... something here
}
Thank you.
if(form.elements["state"].value != '3' || form.elements["state"].value != '6' || form.elements["state"].value != '23' ||
form.elements["state"].value != '33' || form.elements["state"].value != '34' || form.elements["state"].value != '41' ||
form.elements["state"].value != '42' || form.elements["state"].value != '43' || form.elements["state"].value != '46' ||
form.elements["state"].value != '49' || form.elements["state"].value != '50' || form.elements["state"].value != '52' ||
form.elements["state"].value != '64')
{
... something here
}