【发布时间】:2014-07-29 10:29:10
【问题描述】:
我有表格:
<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。怎么做?
【问题讨论】:
-
你是如何匹配输入的?
-
输入名称具有唯一名称
-
两种形式的元素是否同名?
-
否 - 每个表单元素在所有 html 正文上都有唯一的名称