Created
June 15, 2013 12:54
-
-
Save hanigamal/5788039 to your computer and use it in GitHub Desktop.
// Remove duplicates from DOM (not done yet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove duplicates from DOM (not done yet) | |
function remDuplicates() { | |
var seen = {}; | |
$('td.group').each(function() { | |
var txt = $(this).text(); | |
if (seen[txt]) | |
$(this).empty(); | |
else | |
seen[txt] = true; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment