Last Updated: February 25, 2016
·
605
· coreygrunewald

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.