Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to remove duplicate rows from a dynamically generated table

$
0
0

I am building a table of data and this data is combined data from two SharePoint lists.

At the end I applied the code below to remove the duplicate rows, but it is not doing the job. Any alternative code I can use?

 var seen = {};
          $('table tr').each(function() {
          var txt = $(this).text();
         if (seen[txt])
            $(this).remove();
        else
           seen[txt] = true;
        });


faye fouladi



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>