I have a table that produces data dynamically. i would like to know how to remove rows that contain the same data within <tr>
elements and keep the first two <tr>
elements. This question is very similar to this
<table id="test">
<tr>
<td>test1<td>
</tr>
<tr>
<td>test2<td>
</tr>
<tr>
<td>test1 a<td>
</tr>
<tr>
<td>test2 b<td>
</tr>
</table>
I would like the result to be:
<table id="test">
<tr>
<td>test1<td>
</tr>
<tr>
<td>test2<td>
</tr>
</table>