The Created column should have “7” for the Total row. The Redeemed column should have “6” for the total row. Sometimes, there will only be two months of rows or there could be ten rows. How can I total the values up and stick them in the last row of the table using jQuery?
<table cellspacing="0" rules="all" border="1" id="DataGrid2" style="border-collapse:collapse;">
<tbody><tr>
<td>CreationDate</td><td>Created</td><td>Redeemed</td>
</tr><tr>
<td>August 2011</td><td>5</td><td>6</td>
</tr><tr>
<td>July 2011</td><td>1</td><td>0</td>
</tr><tr>
<td>June 2011</td><td>1</td><td>0</td>
</tr><tr>
<td>Total</td><td> </td><td> </td>
</tr>
Image:

Ok, this one gets values for both columns…
You can see the fiddle here: http://jsfiddle.net/Broham/Rtm8p/2/