I have a small application with tables like this:
<tr>
<td><img class='DeleteButton' alt=delete src='images/delete_icon.png'/></td>
<td class='toHide'>some Data</td>
<td class='toHide'>some Data</td>
<td class='toHide'>some Data</td>
<td>some Data</td>
<td class='toHide'>some Data</td>
<td>some Data</td>
<td>some Data</td>
<td class='toHide'>some Data</td>
<td class='toHide'>some Data</td>
<td class='toHide'>some Data</td>
<td class='toHide'>some Data</td>
</tr>
When I add new data in the table, I create a list with "suggestions" - data from the other data tables.
But if I have 3 tables(A,B,C), and some data(D) is in A and B, and when I want to add D to C, in the suggestion list there is D twice.
So how can I find duplicated rows in a table and how to do it the most efficient way?
(only the td-tags without class toHide matters)
So far I have used jQuery to get the suggestion list
$("all the tables").not(myTable).each(function(){
$(".suggestData table").append($(this).html());
}