首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

点击增多按钮,动态添加附件。即新增一行有input type=file,并且给这个input重新命名字

2013-06-19 
点击增加按钮,动态添加附件。即新增一行有input typefile,并且给这个input重新命名字table width100%b

点击增加按钮,动态添加附件。即新增一行有input type=file,并且给这个input重新命名字
<table width="100%"  bgcolor="#F4F4F4" id="tbl">
<tr valign="middle" id ="dv">
<td width="10%" align="right" nowrap><span
class="green">上传附件:</span></td>
<td width="50%" align="left" id=filespan>
<input type="file" id="uploadBulletionFileName" name="uploadBulletionFileName">
</td>
 <td  width="10%"align="left">
<xart:button value="增加" onclick="insert_row(this.form)" />
</td> 
</tr>
</table> 动态增加行,给行中元素重命名
[解决办法]
var d=document.createElement(tagName);
d.setAttribute("name",name)
试试

热点排行