Click to See Complete Forum and Search --> : logical OR question...


kbrown2974
01-14-2004, 07:16 AM
I have an IF that is given me a generic syntax error. I am trying to do an OR on the statements. Problem statement is below.

if (document.MyForm.tquest.selectedIndex == 2) || (document.MyForm.tsbmeet.selectedIndex == 1)

Fang
01-14-2004, 07:22 AM
if (document.MyForm.tquest.selectedIndex == 2 || document.MyForm.tsbmeet.selectedIndex == 1)

kbrown2974
01-14-2004, 07:26 AM
that did the trick. Thanks!