I want to implement a feature that changes the background of ODD/EVEN rows in a table, but only for cells with the class "important". The table is dynamic and generated by PHP with data from Mysql.
<tr class="change">
<td>1111</td>
<td>2222</td>
<td>3333</td>
<td>4444</td>
<td class="important">5555</td>
<td class="important">6666</td>
<tr>
<tr class="change">
<td>1111</td>
<td>2222</td>
<td>3333</td>
<td>4444</td>
<td class="important">5555</td>
<td class="important">6666</td>
<tr>
Therefore, I aim to apply an ODD or EVEN effect to each <TR>
, affecting only specific cells in the table based on the CLASS IMPORTANT.