我有一个多输入的形式,我想添加的功能,其中第一个输入是可见的,其他隐藏和添加更多按钮单击时,它会显示接下来的输入为8.我想保持身份证的方式。 我该怎么办?谢谢。为多个输入添加(+)更多按钮
<label for="stop1">Stop 1 :</label>
<input type="text" id="stop1" name="stop1" /><br />
<label for="stop2">Stop 2 :</label>
<input type="text" id="stop2" name="stop2" /><br />
<label for="stop3">Stop 3 :</label>
<input type="text" id="stop3" name="stop3" /><br />
<label for="stop4">Stop 4 :</label>
<input type="text" id="stop4" name="stop4" /><br />
<label for="stop4">Stop 5 :</label>
<input type="text" id="stop5" name="stop5" /><br />
<label for="stop6">Stop 6 :</label>
<input type="text" id="stop6" name="stop6" /><br />
<label for="stop7">Stop 7 :</label>
<input type="text" id="stop7" name="stop7" /><br />
<label for="stop8">Stop 8 :</label>
<input type="text" id="stop8" name="stop8" /><br />
再次感谢您。
您可以使用JavaScript。我会建议使用jquery根据需要添加额外的输入元素。 – Jrod 2013-04-05 17:06:47
我环顾四周,但还没有尝试过任何东西,我是新来的JavaScript和jQuery。对不起 – im2shae 2013-04-05 17:23:32