Fire a Checkbox Change in IE 7/8
$('input[type=checkbox]').click().change();
While writing some unit tests, I came across the issue of programmatically clicking a checkbox in IE was not actually updating the associated property in the Backbone model. Calling the .change()
method forces the change event to occur, properly updating the model.
Written by Corey Grunewald
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#