I have this table:
<table id="total" border="1" width="100%">
<tbody>
<tr>
<td>Total duration time</td>
<td class="total_duration_time"></td>
</tr>
</tbody>
</table>
<table id="data" border="1" width="100%">
<tbody>
<tr>
<td>Anna</td>
<td>318</td><td class="duration_time">00:00:50</td>
<td>62700</td>
</tr>
<tr>
<td>Bob</td>
<td>318</td>
<td class="duration_time">00:00:27</td>
<td>62703</td>
</tr>
<tr>
<td>Mike</td>
<td>318</td>
<td class="duration_time">00:00:36</td>
<td>88455233284</td>
</tr>
</tbody>
</table>
I need to calculate the sum of the column with class duration_time
and print result in to column with class total_duration_time
.
How to do this on JavaScript or jQuery?
I tried to use the code from this example http://jsfiddle.net/unKDk/13/, but it does not calculate the amount of time if instead of numbers substitute a value of type 00:00:00.