title: count duplicate value from table column using jquery or javascript and pass to rowspan
body: <p>I want to count duplicate value from table column and pass to <code>rowspan</code> using <code>javascript</code> or <code>jQuery</code>.</p>
  
  <pre><code>$(document).ready(function(){
  
      var myarry =[];
  
      var el = {};
  
      $("tbody tr").each(function() {
  
          var row = $(this).nextAll();
          var first = row.find('td').eq(0).text();
          var second =row.find('td').eq(1).text();
          var third = row.find('td').eq(2).text();
          if(el[first + second + third]) {
              myarry.push(el);
  
          }else {       
              var c = (parseInt(myarry.length) + parseInt(1));
  
              console.log(c);
  
              row.find('td').eq(3).attr("rowspan",2);
  
              el[first + second + third] = 1;
  
              myarry =[];
  
          }
  
  
      });
  
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/s4UbF.jpg" rel="nofollow noreferrer">here what i want in actual</a></p>
  
  <p><a href="https://i.stack.imgur.com/NNoIr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NNoIr.jpg" alt="enter image description here"></a></p>