我有表格:
<form action="" method="post" id="form1">
[many inputs, selects etc - form is used to filter the displayed results]
</form>
[content]
<table ...>
<tr>
<td>...<td>
<td>
<form action="" method="post" id="form2">
[some inputs on row]
<input type="submit" name="updaterow" value="Update row" />
</form>
</td>
</tr>
</table>
当我点击form2上的提交按钮时,我想将输入数据从form1复制到form2。怎么做?