Click to See Complete Forum and Search --> : Checkboxes and Netwcape


olliverl
01-12-2003, 08:57 PM
I have a webpage where I entered a lot of checkboxes, and I want to setup a function to clear the checkboxes if they are checked. They are not part of a form. With IE this is easy, and I simply use document.all...

However, I am unable to come up with the correct syntax for the Netscape browsers.
Any help is appreciated.

Olliverl

mini_dumbo
01-12-2003, 09:52 PM
Try using getElementById ...

e.g.

<input id="AAA">
if (clicked)
document.getElementById('AAA').value = "";


not too sure if that will helps you ... we are also not too good at javascript !!!

Bo & Vic :)

gil davis
01-13-2003, 05:33 AM
Originally posted by olliverl
They are not part of a form.
Netscape does not allow form elements outside of a form. Neither does the W3C.