checkbox setting

wxdqz

New Member
Hi,

I am trying to set the boolean value on a checkbox element, such as below by accessing it through the desired table:

document.getElementById("mytable").checkbox[index].checked = true;

but this does not work, I can set the value though on the checkbox when I write it like this, but I want to avoid this due to obvious limitations:

myform.elements[index].checked = true;

Please help.

thanks.
 
Back
Top