I have a table in html .... I need: if I have two or more almost identical lines (first check with uppercase letters and without spaces and other characters ... just numbers and letters), I have to delete everything and save one, but only one where I have some value in td ... Take a look at an example:
Bosch | 1234s | details
BOSCH | 1234S |
ATE | 1215 | details
i should contain only such a table:
Bosch | 1234s | details
ATE | 1215 | details
Just if there are the same ones (with uppercase and without spaces or other characters ... just numbers and letters), then delete all the same lines and save them where in the third line I have details ...
I am not good at javascript .... Please help me (just do not minus or do not close) ... I was looking for some sorting ... But how to remove almost duplicates didn not know ....
also now i have tablesorter:
$(document).ready(function() {
$(".sortable")
.tablesorter({sortList: [[4,0]], widgets: ['zebra']});
});
source
share