日期:2014-05-18  浏览次数:20658 次

表示一列里的两个属性
我的代码如下
document.all.tableId.rows[3].cells(3).firstChild.style.display= 'none '
document.all.tableId.rows[3].cells(3).secondChild.style.display= 'block '
表格里面第三行第三列里有两个文本框,我想让一个显示一个隐藏,上面的代码对吗,有secondChild这一说吗。

------解决方案--------------------
直接取文本框的id来做就行了吧
------解决方案--------------------
最好给没个文本筐给个id
然后document.getElementById( "xxxx1 ").style.display= 'none '
document.getElementById( "xxxx2 ").style.display= ' '