When I run the following jQuery animation sequence:
$('#task').animate({ backgroundColor: fadeColor }, 50)
.animate({ opacity: 1.0 }, 1000)
.animate({ backgroundColor: originalBG }, 1000);
It leaves unnecessary styles in my table row at the end (below)
<tr id="task29" onclick="TaskEdit('29');" style="background-color: rgb(255, 255, 255); opacity: 1;">
These styles interact with those defined in my CSS file (in particular, some hover styles). Anyone have a recommendation on how to fix them. I am using jQuery 1.3.1. I tried adding
.attr('style', '');
to the end of the chain, but it didnβt work. Any other ideas?
source
share