On some computers the variable check returns true when an option is selected from a drop down menu & on others it returns false when the same option is selected. If I only use the the first condition in the if statement then it works correctly on all the computers but when I use the first condition or the second condition in the if statement it doesn't always work. I assume there's something ambiguous in the if statement but I can't figure it out.function check_form()
{
var check = true;
if ((document.theload.location.value == "")|| (document.getElementById('city').value==""))
{
alert ('You need to select a Location;');
check = false;
}
return check;
}
Any ideas welcome