Hi!
I’ve created a checkbox using box1 = createCheckbox('test', true);
and I want to be able to change the state of that checkbox. However, box1.elt.checked
returns undefined
. This seems to be, because box1.elt
returns the checkbox wrapped in a div.
<DIV>
<INPUT type="checkbox" id="jxl7300rqxa"></INPUT>
<LABEL for="jxl7300rqxa">test</LABEL>
</DIV>
How can I access the input div and be able to change the .checked
state?