JQuery Highlight assumes background is white

I am trying to make a highlight effect for certain cells in a table. My problem is that for some reason, the jQuery highlight effect seems to suggest that the background color is white by default. So if my table row is dark gray, for example, will it blink with the color that I specify and then fade to white? and then switch back to dark gray.

I managed to play it on jsFiddle (tested with Chrome). Just click on the row of the table to find out what I'm talking about.

http://jsfiddle.net/ZncRM/

I would like it to disappear in the correct background color - dark gray in this case. How to do it?

Just to clarify - with the example provided in the jQuery documentation, it doesn't seem to disappear at all. JQuery selection example

+7
source share
1 answer

You just need to set the background color for TD.

tr, td { background-color: #d8d8d8; } 

An example for you is here .

+6
source

All Articles