A project I'm working on has a table of "buttons" (could also be thought of as tabs), where one can be selected/highlighted at a time just by clicking it. Simple enough. A few lines of code and it worked in all browsers, except IE8 and earlier. In my original code, IE8 wouldn't unselect any buttons ever (removeClass didn't work), unless an alert is displayed at the same time (??). It seems IE8 doesn't play nice in jsFiddle, so I made a codepen example - http://codepen.io/anon/pen/FHfwc . Though for some reason, the clicking doesn't activate any buttons in IE8 there (so addClass is not working). But, as it should, it works fine in all other browsers. Any ideas?