PDA

View Full Version : Error trapping issues...


PCheese
06-18-2001, 10:55 AM
Sorry all, a weekend of endless gaming has left my brain as useful as goo.

Can anyone tell me whats up with this JS???

function checkOneSelected() {

if (chkobj.value == 1) {

if (field1obj == "" || field2obj == "" || field3obj = "" || field4obj == 0) {
status='Please complete one of the fields.';
field1obj.focus();
return false;
}
return true;

return false;
}
return true;
}


That's about all - I think it's erroring on the second if statement but can't get my head into gear... All the ***obj parameters are correct I think.

PCheese
06-19-2001, 07:14 AM
Never mind...

I missed out an equals sign.

Plonker.