如何为动态表格添加行
由于当中有几列是动态读出来的,这样的行怎么添加才好呢
表格源代码如下,还有新添加的行的name也要按照第一行的来排下去
比如说第一行的 <td> <input type= "text " name= "fileno1 "> </td> 这一列
新的一行里就得为 <td> <input type= "text " name= "fileno2 "> </td> 这样一直下去
[code=Java]
<table id= "table1 " width= "95% " cellpadding= "0 " cellspacing= "0 " align= "center ">
<tr>
<td height= "31 " width= "3% " > <div align= "center "> 序号 </div> </td>
<td width=10% "> <div align= "center "> 文号 </div> </t>
<td width= "30% "> <div align= "center "> 题名 </div> </td>
<td width= "5% "> <div align= "center "> 页次 </div> </td>
<td width= "8% "> <div align= "center "> 日期 </div> </td>
<td width= "8% "> <div align= "center "> 责任人 </div> </td>
<%oFileInfo.getTypeInfos(Long.parseLong(dossertype));
while(oFileInfo.goNext()){%>
<td width= "8% "> <div align= "center "> <%=oFileInfo.getTitle() %> </div> </td>
<%}oFileInfo.Close(); %>
<td width= "5% "> <div align= "center "> 备注 </div> </td>
<%if(up){ %>
<td width= "10% "> <div align= "center "> 电子源文件 </div> </td> <% }%>
</tr>
<tr >
<td ondblclick= "showmenume(event, ' <div class=menuiems> ' +
' <input type=text name=buttonnew3 value= 行拷贝 style=CURSOR: hand onclick=javaScript:copyline(1);> </div> ' +
' <input type=text name=buttonnew3 value= 行粘贴 style=CURSOR: hand onclick=javaScript:pasteline(1);> </div> ') ">
<input type= "text " name= "seqno1 " value= "1 " readonly= "readonly