Let's say I have a table header with content like this...
<th>
<div class="text-left field-sorting " rel="local_inventory"> Local inventory </div>
</th>
<th>
<div class="text-left field-sorting " rel="something else1"> Something Else1 </div>
</th>
<th>
<div class="text-left field-sorting " rel="something else2"> Something Else2 </div>
</th>
and now I am looking to style the corresponding table data cells...
<td>4</td>
<td>0</td>
<td></td>
in a way that applies a certain style only if the cell is not empty and its value is greater than 0. I am thinking of using jQuery to add CSS dynamically. If this is not possible, I might need to modify the PHP script that generates this data table. Since I can access the table header elements, my question is how to leverage that to target the related table data cells in the same column, even if they don't have any unique identifiers.