i have this script to remove duplicate elements by class using jquery, is there a way to do it with pure javascript? this is my code
<script >$(document).ready(function() {
var seen2 = {};
$('.listofarticlescolor').each(function() {
var txt2 = $(this).text();
if (seen2[txt2])
$(this).closest('.category').remove();
else
seen2[txt2] = true;
});
});
</script>