我有一个乘以 DOM 元素的 JavaScript 函数。
我打了 2 次(例如),我得到了 3 个这样的元素:
<!-- How to show all my new Elements after refresh? -->
<tr id="toBeMultiplied">
<td>
<!-- How to echo the value of this input? -->
<input type="text" name="numbers[]" />
</td>
<td>
<!-- How to echo the value of this input? -->
<input type="text" name="titles[]" />
</td>
<td>
<!-- How to echo the value of this input? -->
<input type="text" name="lengths[]" />
</td>
</tr>
但这只是大Form的一小部分!当我点击提交时,我刚刚创建的那些新元素就会消失。
所以,我想让我的新元素不会消失。