Been poking around but having a hard time coming up with what I need. Given an HTML table, how would one subtotal across and then total at the bottom?
Specifically, I have this:
<table>
<tr>
<th>Admission Type</th>
<th>Number of People</th>
<th>Price</th>
<th>Total</th>
</tr>
<tr>
<td>General (Adults & Children 13+)</td>
<td><input type="number" class="quantity" id="adultTix" name="adultTix"
min="0" max="10" value="0"></td>
<td>$ 10</td>
<td><label for="adultTot"></label></td>
</tr>
<tr>
<td>Senior (Ages 55+)</td>
<td><input type="number" class="quantity" id="seniorTix" name="seniorTix"
min="0" max="10" value="0"></td>
<td>$ 7</td>
<td></td>
</tr>
<tr>
<td>Children (Ages 5-12)</td>
<td><input type="number" class="quantity" id="kidsTix" name="kidsTix"
min="0" max="10" value="0"></td>
<td>$ 7</td>
<td></td>
</tr>
<tr>
<td>Children (Under 5)</td>
<td><input type="number" class="quantity" id="freeTix" name="freeTix"
min="0" max="10" value="0"></td>
<td>$ 0</td>
<td></td>
</tr>
</table>
And I want the "Total" column to update as the quantity changes and then I need another row that totals the "Total" column.
Thanks in advance for your help.