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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -