Friday, March 29, 2013

Workaround IE Class/Style Sticking Bug

In my click event handler for a tr element, I'm toggling the class with jQuery, but in IE 7,8,9, and 10 the style of the class doesn't get removed until I click a different row.  I fixed it by prepending a space (' ') to the tr content after calling toggleClass.

No comments: