S
sicapitan
I have this code snippet:
updateProps snippet:
if (mycheckbox.checked == '1')
? $('mycheckbox').checked = true
: $('mycheckbox').checked = false;
content = $('mydiv').innerHTML;
html snippet:
<div id="mydiv">
<input id="mycheckbox" class="checkbox" type="checkbox" value=""
tabindex="14" onchange="(this.checked) ? checkVal = '1' : checkVal =
'0';updateProps(checkVal, 'mycheckbox')" />
</div>
The problem is that when I display the contents of content it doesnt
have 'checked'. But if I alert($('mycheckbox').checked); it says it is
true
Is this a problem with innerHTML not grabbing the correct data or the
checkbox not actually being checked?
updateProps snippet:
if (mycheckbox.checked == '1')
? $('mycheckbox').checked = true
: $('mycheckbox').checked = false;
content = $('mydiv').innerHTML;
html snippet:
<div id="mydiv">
<input id="mycheckbox" class="checkbox" type="checkbox" value=""
tabindex="14" onchange="(this.checked) ? checkVal = '1' : checkVal =
'0';updateProps(checkVal, 'mycheckbox')" />
</div>
The problem is that when I display the contents of content it doesnt
have 'checked'. But if I alert($('mycheckbox').checked); it says it is
true
Is this a problem with innerHTML not grabbing the correct data or the
checkbox not actually being checked?