Instead of having specifically adding custom code like <td
class="red"> into your table, let jQuery do the work for you.  (much
simpler, particularly if the table's code is generated dynamically,
and you can't modify it.)

For example, to override the zebra background on the first and 3rd
columns of a zebra striped row,  you could do something like:
$("table.zebra tbody tr:odd td:first-child").addClass("red");
$("table.zebra tbody tr:odd td:nth-child(3)").addClass("red");

sly





Reply via email to