[CODE=javascript]var locationID=docu ment.getElement ById("locationI D");
if (locationID.val ue!="England")
if (locationID.val ue!="Wales")
if (locationID.val ue!="Ireland")
if (locationID.val ue!="Scotland")
{
alert("Please enter a location");
return false;
}
[/CODE]
Please use CODE tags - MODERATOR
Is there a better way to write this (see above code)? If you can start me start off that would be great.
cheers
if (locationID.val ue!="England")
if (locationID.val ue!="Wales")
if (locationID.val ue!="Ireland")
if (locationID.val ue!="Scotland")
{
alert("Please enter a location");
return false;
}
[/CODE]
Please use CODE tags - MODERATOR
Is there a better way to write this (see above code)? If you can start me start off that would be great.
cheers
Comment