Hi,
I have a table in a form like this
<form>
<table>
<tbody id='target'>
<tr id="dolly"><td><input name="hobby[0]" /></td></tr>
</tbody>
</table>
</form>
I also have a button to add a new row, by cloning the 'dolly' tr and appending to 'target'
<input type="button" onclick="AddRow('dolly', 'target') />
May I ask what is the javascript or DOM code to reach the <input> element so that I can change its name attribute? Something like this:
newRow.td.input.name = "hobby[1]";