Search code examples
jquerytwitter-bootstrapjquery-effects

jQuery Highlight Effect On Table Row Styled With Bootstrap


Using Bootstrap 2.0 I've styled a table using .table-striped. I'm updating rows of data via ajax and when the update is complete, I want to highlight the row, which works on rows that don't have a background-color. So basically, the even rows highlight, the odd rows don't. I'm not sure why that is.

I might just be too tired right now but some advice would be appreciated.

I'm using the following code to trigger the highlight:

$("#row_" + id).effect("highlight", {}, 1500);

Solution

  • Run the effect not on the row, but on the cells within the row. All the rows are highlighting, both even and odd. The changing background colour of the odd rows just gets hidden because the table cells' colour is over top.