Updating totals with dynamic data using jquery
Hi
The following table row repeats on my dust template, usually up to 10 or so results. Each line has a quantity selection. I would like to update the total in the last cell of the row with the quantity * the price on the current table row. Is this possible and what is the best way to do this? Thought I would ask before I wasted too much time trying the wrong thing :) Thanks.
- {#Lifts[0].Result.Items}
- <tr>
- <td>
- <h5 >{AgeCategory}</h5>
- <small >Ages {MinimumAge} - {MaximumAge}</small>
- </td>
- <td style="vertical-align: middle">
- <div>{Name}</div>
- </td>
- <td>
- <span>${Price}</span><small>/ person</small></span>
- </td>
- <td>
- <div class="controls inline">
- <select class="form-control">
- <option value="0" selected="selected">0</option>
- <option value="1">1</option>
- <option value="2">2</option>
- </select>
- </div>
- </td>
- <td>
- <span> 0">$0.00</span>
- </td>
- </tr>
- {/Lifts[0].Result.Items}