[字号:  ]

有没有什么办法,可以以输入数字的方法,增加表单提交行?

发布时间:2008-11-16 23:20   作者: 无情的情   信息来源: PHPChina 开源社区门户
如文字所示,有没有什么方法,可以在提交表单的时候,在表单里输入一个数值来增加<input>的行数

:<input name="idnum" type="text" value="00001"> <br />
<input name="coolday00001" value="100" type="text"><input name="cooldayinfo00001" value="f" type="hidden"><input name="coolid00001" value="20000" type="hidden">
<input name="coolday00001" value="100" type="text"><input name="cooldayinfo00001" value="f" type="hidden"><input name="coolid00001" value="20001" type="hidden">
<input name="coolday00001" value="100" type="text"><input name="cooldayinfo00001" value="f" type="hidden"><input name="coolid00001" value="20003" type="hidden">
<input name="coolday00001".......
<input name="coolday00001".......
<input name="coolday00001".......
<input name="coolday00001".......
<input name="coolday00001".......
<input name="coolday00001".......


求教,谢谢拉~~~~~~~~

最新回复

liexusong at 2008-11-16 23:25:50
用JS的document.createElement()方法,详细可以参考DOM手册!
无情的情 at 2008-11-16 23:43:26
可以指定数量么?而不是一个一个的点击插入?
liexusong at 2008-11-16 23:47:11
可以用一个for循环啊!怎么要一个个输入呢!?
无情的情 at 2008-11-16 23:48:57
大大能详细点么?有点头晕了,菜鸟的说...
liexusong at 2008-11-17 09:24:09
运行看看!
无情的情 at 2008-11-17 20:30:33
TEST了一下,没反应......