您现在的位置是:首页 > 电脑技术查询 > web开发

checkbox属性有关问题

编辑:chaxungu时间:2022-10-02 23:17:31分类:web开发

checkbox属性问题
var tableofdel = document.getElementById("phonetable"); //table的id

var inputcom=tableofdel.getElementsByTagName("input");

inputcom[i].type //网页提示错误:type属性找不到。

------解决方案--------------------
inputcom[i].getAttributeNode
------解决方案--------------------
JScript codeinputcom[i].getAttributeNode("").value
------解决方案--------------------
inputcom[i].type

i越界了