In my HTML document I have 3 checkboxes:
<INPUT type="checkbox" name="Items" id="A"/>
<INPUT type="checkbox" name="Items" id="B"/>
<INPUT type="checkbox" name="Items" id="C"/>
When I do the following script the result is 3.
alert (mydocument.forms["myForm"].Items.length);
When I change the HTML with 2 checked checkboxes:
<INPUT type="checkbox" name="Items" id="A" checked="true"/>
<INPUT type="checkbox" name="Items" id="B" checked="true"/>
<INPUT type="checkbox" name="Items" id="C"/>
The result of the following script is 1 instead of 3.
alert (mydocument.forms["myForm"].Items.length);
Does anyone know why I get only the unchecked item with mydocument.forms["myForm"].Items?
Thanks.
Ilse
<INPUT type="checkbox" name="Items" id="A"/>
<INPUT type="checkbox" name="Items" id="B"/>
<INPUT type="checkbox" name="Items" id="C"/>
When I do the following script the result is 3.
alert (mydocument.forms["myForm"].Items.length);
When I change the HTML with 2 checked checkboxes:
<INPUT type="checkbox" name="Items" id="A" checked="true"/>
<INPUT type="checkbox" name="Items" id="B" checked="true"/>
<INPUT type="checkbox" name="Items" id="C"/>
The result of the following script is 1 instead of 3.
alert (mydocument.forms["myForm"].Items.length);
Does anyone know why I get only the unchecked item with mydocument.forms["myForm"].Items?
Thanks.
Ilse