title: How to calculate all the values in Bootstrap table column and display in table footer
body: <p>I have the following bootstrap Json table.</p>
  
  <p><a href="http://jsfiddle.net/e3nk137y/12369/" rel="nofollow noreferrer">Fiddle</a></p>
  
  <p>I want to add all the values in the stars Columns and </p>
  
  <pre><code> | Name               | Stars           | Forks             |
  
  Total Stars $832                       Total Forks $456
  </code></pre>
  
  <p>Display in the table as "Total Stars" etc</p>
  
  <p>How can I add the column and display the values?</p>
  
  <pre><code>&lt;table id="table"&gt;
      &lt;thead&gt;
      &lt;tr&gt;
          &lt;th data-field="state" data-checkbox="true"&gt;&lt;/th&gt;
          &lt;th data-field="name"&gt;Name&lt;/th&gt;
          &lt;th data-field="stargazers_count"&gt;Stars&lt;/th&gt;
          &lt;th data-field="forks_count"&gt;Forks&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  
  
  
  
  JSON temp.json
  
  {
        "Name": "Julie own",
        "Account": "C0010",
        "LoanApproved": "12/5/2015",
        "LastActivity": "4/1/2016",
        "PledgedPortfolio": "1000000",
        "MaxApprovedLoanAmt": "1000000",
        "LoanBalance": "1849000",
        "AvailableCredit": "201877.824375",
        "Aging": "3",
        "Brokerage": "My Broker",
        "Contact": "R Johnson",
        "ContactPhone": "-3614",
        "RiskCategory": "Yellow",
        "rows": [{
          "Account": "086-1234",
          "ClientName": "Sal Smith",
          "AccountType": "Ret",
          "LongMarketValue": "$450000"
        },  {
          "Account": "086-1235",
            "ClientName": "y Smith",
          "AccountType": "Trust",
          "LongMarketValue": "$550000"
        },
         {
          "Account": "086-1236",
            "ClientName": "y Smith",
          "AccountType": "Retail",
          "LongMarketValue": "$550000"
        }]
      }
  </code></pre>