javascript - IE can't handle jquery something.checked -
the following coffeescript code works read checkbox in several browsers, not in ie:
if something.checked
html:
<input type="checkbox" name="something" id="something" >
with ie, get
something undefined
having element named "something" not magically bind javascript. need create event handler first.
document.getelementbyid('something').onclick = function(element) { ...your code ... })
Comments
Post a Comment