/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>