I have the following table that outputs values from db via a loop and looks something like this:
<table class="myData">
<tr>
<td class="lbl">
Item 1:
</td>
<td>
Amateur Team
</td>
</tr>
<tr>
<td class="lbl">
Item 2:
</td>
<td>
New School
</td>
</tr>
...
<tr>
<td class="lbl">
Item 53:
</td>
<td>
New School
</td>
</tr>
</table>
I would like to use jQuery to highlight duplicate values in the second column, perhaps by changing color. Can that be done?
if (duplicate(s)) {
$(".myData td:nth-child("2").css("color","red");
}