<table id="test" border="1">
<tr>
<td>test1<td>
<td>00.00.00<td>
</tr>
<tr>
<td>test2<td>
<td>00.00.00<td>
</tr>
<tr>
<td>test1<td>
<td>00.00.01<td>
</tr>
<tr>
<td>test2<td>
<td>00.00.01<td>
</tr>
</table>
<script type="text/javascript" >
var seen = {};
$('table tr ').each(function() {
var txt = $(this).text();
if (seen[txt]) $(this).remove();
else seen[txt] = true;
});
</script>
I tried it with the above jquery script but it fails for this scenario. I would like to remove duplicates only based on the first column. any suggestions on this, please?