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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -