document.getElementById("row_product[i]").removeChild(this)
解决方案 »
- 请问如何能下载该网站的上的2个flash (flash路径加密技术)
- 如何解决了网络无法连接时,的自定义提示框
- 帮帮我呀,学生做项目中。。。
- nextSibling 无法获取的问题
- 帮忙看看这段代码执行了是啥效果.谢谢啦!
- javascript中 window.变量名 是全局对象吗?
- 关于取table里的值的问题,急,在线等,解决就结贴,谢谢
- 请教一个关于菜单控件的问题
- document.all是什么作用啊?
- 我可以通过style定义普通字体的大小,却不能定义表格中字体的大小
- 关于select 与 checkbox 联动。再加上个特殊效果。不知道该怎么实现。
- 中等难度的IE和FF兼容性问题,解决就全给了
更改为下形式document.getElementById("row_product["+i+"]").style.display = "none"
<table id="table1" border="1">
<tr style="display:none"><td><input></td><td><input type="button" value="删除" onclick="this.parentNode.parentNode.removeNode(true)">
</tr>
<tr><td><input></td><td><input type="button" value="删除" onclick="this.parentNode.parentNode.removeNode(true)">
</tr>
<tr><td><input></td><td><input type="button" value="删除" onclick="this.parentNode.parentNode.removeNode(true)">
</tr>
</table>
<input name="aaa" type="button" value="新增" onclick=addRow()>
<script language=javascript>
function addRow(){
var objTbody=document.getElementById("table1").childNodes[0]
var objNewTr=objTbody.childNodes[0].cloneNode(true)
objNewTr.style.display=""
objTbody.appendChild(objNewTr)
}
</script>
{
$("#"+obj).parents(deltag).remove();
}