title: Having trouble trying to style duplicates
body: <p>I'm checking for duplicates in a table. What I'm trying to accomplish is when I display the first column if it is the same value as the previous row I don't want to display the value. I'm finding the duplicates but I get an error when I try to hide them by using display. style ="none";  My code is below.</p>
  
  <p>I'm Thanking You In Advance
  PD</p>
  
  <pre><code> var data=[['e',0,1,2,3,4], ['a',54312,235,5,15,4], ['a',6,7,8,9,232],
       ['a',54,11235,345,5,6], ['b',0,1,2,3,4], ['b',54312,235,5,15,4],
       ['c',62,15,754,93,323], ['d',27,11235,425,18,78], ['d',0,1,2,3,4],
       ['d',54312,235,5,15,4], ['e',6,7,8,9,232], ['e',54,11235,345,5,6],
       ['e',0,1,2,3,4], ['e',54312,235,5,15,4], ['e',62,15,754,93,323], 
       ['e',27,11235,425,18,78]];
  
  
   //Create a HTML Table element.
       var table = document.createElement("TABLE");
       var somedata = document.createElement("TD");
       var dvTable = document.getElementById("dvTable");
       var elems = document.getElementsByClassName("tableRow");
  
  
    //Get the count of columns.
    var columnCount = data[0].length;
  
      //Add the data rows.  
     for (var i = 0; i &lt; data.length; i++) {  
     var row = table.insertRow(-1);
        for (var j = 0; j &lt; columnCount; j++) { 
        //Searching for duplicates            
             var num = data[i][0];
           for (var otherRow = i + 1; otherRow &lt; data.length; otherRow++) {           
              var dup =  data[otherRow][0];
                 console.log("What is the dup" + dup);
              if (num === dup)
              { 
                   console.log("duplicate");
                   dvTable[i].style.display = "none";
              }
           }
  
  
              var cell = row.insertCell(-1);                    
              cell.innerHTML = data[i][j];
              cell.innerHtml = myZero; 
  
  
  
        }     
     }  
  </code></pre>