Return to Snippet

Revision: 43798
at March 31, 2011 02:45 by Onfire60


Initial Code
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
  $('ol').each(function() {
    var seen = {};
    $(this).children('li').each(function() {
        var txt = $(this).text();
        if (seen[txt])
            $(this).remove();
        else
            seen[txt] = true;
    });
  });
});
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Remove Duplicate Items From Multiple Ordered Lists Individually

Initial Tags
javascript, jquery

Initial Language
jQuery