不能用innerHTML的.The innerHTML property is read-only on the FRAMESET, HTML, HEAD, TABLE, TBODY, TFOOT, THEAD, TITLE, and TR objects.
innerHTML对于Table,tr都是只读的.
innerHTML对于Table,tr都是只读的.
解决方案 »
- 急急急!IE和ipad浏览器的区别
- Extjs 3.0 multiselect根据选择的哪项右边的iframe显示数据
- 为什么弹出层位置不是相对的?
- CSDN左边树形结构查询功能的实现
- javascript如何调用帮助文件????????????????
- meizz,关于你的树型结构的问题,请回答一下
- 用什么办法可以知道当前的窗口是不是全屏幕的状态?
- 怎样让文本框的底色为蓝色(或着透明)
- 大菜鸟小问题,帮我啊!!100分啊!
- !!!!!!!!!!!!!!!千万火急!什么对象具有style属性。下面这段javascript代码。总是提示bignannerdiv没有定义。请问应该怎么定义。才能具有.style.pixelLeft的属性
- 一个框架刷新问题~~~~
- 请问如何才能让我们写的javascript不被别人看到,我们写的JS文件不能被下载了。谢谢
<script>
newRow = tb.insertRow();
newCell1 = newRow.insertCell();
newCell1.innerHTML="<form name=myform action='a.asp' method='post'><input type =text id ='input_d' value=''>"
newCell2 = newRow.insertCell();
newCell2.innerHTML="<input type = text id=keyno >";
</script>
动态加行时,把form也加进去。不能用cell.innerHTML
<tr bgcolor="#FFFFFF" style="display:none" >
<form name="dtl" action="" method="post" >
<td width="8%" height="20">
<div align="left">
<input name="cdkind" type="text" id = "cdkind" style="behavior:url(htc/zhq.htc)" readonly ="true" size="10" maxlength="30">
</div></td>
<td width="12%" height="20">
<div align="left">
<input name="spect" type="text" id = "spect" style="behavior:url(htc/zhq.htc)" readonly ="true" size="15" maxlength="250">
</div></td>
<td width="5%" height="20">
<div align="left">
<input name="unitno" type="text" id = "unitno" style="behavior:url(htc/zhq.htc)" readonly ="true" size="5" maxlength="15">
</div></td>
<td width="8%" height="20">
<div align="left">
<input name="qty" type="text" id = "qty" style="behavior:url(htc/zhq.htc)" size="10" maxlength="15" datatype ="numeric">
</div></td>
<input type="hidden" name="modifyflag" value ="new">
<input type="hidden" name="recno">
<input type="hidden" name="m_recno">
<input type="hidden" name="cdcode">
</form>
</tr>
就是把这个行给复制。
老大们帮忙呀。
急急。
<table ...>
<script>
var mys = "<tr> <form name=myform action='a.asp' method='post'>
<td><input type =text id ='input_d' value=''></td>
<td><input type = text id=keyno ></td></tr>"
document.write(mys)
</script>
</table>