iffehw
Last Updated: February 25, 2016
·
482
· coreygrunewald
F5b375690fefcb29c25f2cfbb3286f19

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.

Say Thanks
Respond