Menu
hi
i want to know if the following if statement is valid….
its not throwing an error, but is also not doing what i want it to do….
I want to check if : (Hotel OR Car) and Leg1 =”” ….. then do something…
var f = document.forms[0];
var i;
if(((f.Air1.options[f.Airl1.options.selectedIndex].text !==”Hotel”) || (f.Air1.options[f.Air1.options.selectedIndex].text !==”Car”)) && (f.Leg1.value==””)) {
return false;
}