Cycle through tr find and add values of each text input?

Cycle through tr find and add values of each text input?

I know this can be done, but I'm looking for the correct way to do it.

Example:
<table>
<tr id="a">
<td><input type="text" id="t1"></td>
<td><input type="text" id="t2"></td>
<td><input type="text" id="total"></td>
</tr>
</table>


What I am looking for is:
When a value is input (numeric) into the fields (t1 and or t2) they will be totaled in the "total" field. This code is a small example,.. i would have 20 or so fields per table row that would need to be added to a total at the end of each row.

Any help in pointing me in the right direction would be appreciated.