Here's my HTML:
<input id="test" type="checkbox" checked="">
Here's a Firebug excerpt:
>>> test
<input id="test" type="checkbox" checked="">
>>> test.checked = false
false
>>> test
<input id="test" type="checkbox" checked="">
Um...am I missing something, or should that last line not read the following?
<input id="test" type="checkbox">
UI-wise, the checkbox does indeed uncheck when I execute the checked = false
line.
Anyway, if there's some legitimate explanation for this, then what's the proper way to uncheck a checkbox from JavaScript, if not checked = false
?