I have a simple table, and I would like to add a class for the cells between the active
class.
<table>
<tr>
<td class="active">col</td>
<td>col</td>
<td>col</td>
<td>col</td>
<td>col</td>
</tr>
<tr>
<td>col</td>
<td>col</td>
<td>col</td>
<td class="active">col</td>
<td>col</td>
</tr>
</table>
The problem is that the second active
col is in a new tr
. How can I achieve the expected functionality?