"Andy Lee" <no_email@no_email.com> writes:
I am trying to find a way of checking a checkbox in Javascript based on its
value and not its index.
ie document.form1.checkbox['name'].checked = true
Try:
document.forms['form1'].elements['name'].checked = true;
or can it only be done with the index ?
No, but there isn't a checkbox collection, just a general element
collection.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'