title: Jquery Calculate each column count based on first column
body: <p>I have the following table :</p>
  
  <pre><code>a   b    c   d
  --------------  
  5   2   25  25  
  2   48  20  20  
  5   1   22  22  
  3   4   31  31  
  3   3   33  33  
  3   6   43  43  
  3   8   45  45  
  3   5   42  42  
  3   11  37  37  
  3   7   40  40  
  3   10  36  36  
  1   35  40  40  
  3   22  38  38  
  3   23  35  35  
  1   31  34  34  
  </code></pre>
  
  <p>I need to calculate sum of each column based on column A group i.e., group by A, results in the output:</p>
  
  <pre><code>a  b   c   d
  ------------    
  1 20  30  15    
  2 30  20  24    
  3 10  30  16
  </code></pre>
  
  <p>Any one help me out</p>