<a class="edit linkButton" href="javascript:void(0)" title="Enable rack editing">
<span class="icon-pencil"></span>
Edit
</a>
$(function(){
setTimeout(function(){
$('.linkButton').addClass('disabled');
}, 2000);
setTimeout(function(){
$('.linkButton').removeClass('disabled');
}, 4000);
});
a.linkButton {
color: red;
}
a.linkButton:hover {
color: blue;
}
a.linkButton.disabled {
color: gray;
}
Fairly simple code. Works fine in modern browsers. Under IE8 when I add the disabled class to linkButton, the icon-pencil span continues to be painted red, not gray. Is there a simple fix for this sort of thing?
Here's a picture, don't worry about the icon not showing up, I just don't have the font loaded: