Return to Snippet

Revision: 42068
at February 26, 2011 06:50 by crypticsoft


Initial Code
var seen = {};
        $('div.related div a').each(function() {
            var txt = $(this).text();
            if (seen[txt])
                $(this).remove();
            else
                seen[txt] = true;
        });

Initial URL
http://stackoverflow.com/questions/2822962/jquery-remove-duplicate-elements

Initial Description


Initial Title
Remove duplicate elements

Initial Tags


Initial Language
jQuery