Click to See Complete Forum and Search --> : IF statement and Form problems


Sandman
10-02-2003, 09:07 PM
Ok..

IF (document.form1.paper0[0].checked)
{alert ("yes")}

any ideas why im getting an "object expected" error on the line on which the if statement is?

the document.form1... is a valid reference, and passing it to the alert function outputs "true", also if (docu... == true/"true") doesnt work, same error..

I dont see any problems does anyone else?

pyro
10-02-2003, 09:20 PM
It's probably because JavaScript is case-sensative, and you used IF. Try if (lowercase) ;)

Sandman
10-02-2003, 09:24 PM
Your F*#&ing kidding me....

Ive been getting so frustrated with this little &*^%

Ahh well

thanks heaps

pyro
10-02-2003, 09:39 PM
hehe... No problem... :)