I have a table and a form and layout like this:
<table>
<tr><td>fName</td>
<td>lName</td>
<td><input type=text name=age value=0 onChange=”update();”></td>
</tr>
</table>
Form:
<form>
<input type=text name=fname value = “”>
<input type=text name=lname value = “”>
<input type=text name=age value = 0 onChange=”addRec();”>
</form>
If I change age in table, AJAX updates fine. Also, through the form, records are also added to the table.
However, added records are not updated. It updates only when age is changed after addition. I know i have to use onChange for every element in form. Is there a better approach to trigger change event? Thanks.