The code that’s giving me headaches is this:
$('#timeline .selected').removeClass('selected');
It just won’t behave properly in IE8. The classes DO get removed properly, but somehow the element still has the same styling, just as the style with the class ‘selected’.
P.S. Those two won’t work either:
$('#timeline .selected').removeAttr('class');
$('#timeline .selected').removeAttribute('class');
Please help!
Updated: http://jsfiddle.net/jWvdr/2/
Seems to work fine:
http://jsfiddle.net/jWvdr/
What css attributes are giving you problems?