在TextBox输入内容怎样更换TD里面的内容
<tr>
<td height="30" align="center"><b>J</b></td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R3</td>
</tr>
</table>
<br />
<br />
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" class="style2"><asp:TextBox runat="server" Width="333px" ID="texbox"></asp:TextBox></td>
<td height="30"><asp:Button runat="server" Width="93px" ID="gx" Text="更新"
OnClientClick="saveTableSj()" onclick="gx_Click"/></td>
</tr>
</table>
</div>
<asp:HiddenField ID="HiddenField1" runat="server" />
<td height="30" align="center"><b>J</b></td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R4</td>
<td height="30" align="center">R3</td>
</tr>
</table>
<br />
<br />
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" class="style2"><asp:TextBox runat="server" Width="333px" ID="texbox"></asp:TextBox></td>
<td height="30"><asp:Button runat="server" Width="93px" ID="gx" Text="更新"
OnClientClick="saveTableSj()" onclick="gx_Click"/></td>
</tr>
</table>
</div>
<asp:HiddenField ID="HiddenField1" runat="server" />
...全文
请发表友善的回复…
发表回复
Teng_s2000 2009-03-20
- 打赏
- 举报
没有关联数据库,这样操作有意义吗?
byl_52 2009-03-20
- 打赏
- 举报
<td height="30" align="center"><%=Content%></td>
雨网科技 2009-03-20
- 打赏
- 举报
不知道你要更换TD的什么类容。
阿非 2009-03-20
- 打赏
- 举报
给要替换td内容的table 命名id
然后循环遍历每个td 设置 innerText 就可以了