解决IE下getElementsByName无效问题
//解决IE下getElementsByName无效问题 function commonGetElementsByName(parentDom, tagName, name) { var result = new Array(); var doms = parentDom.getElementsByTagName(tagName); for (var i = 0; i < doms.length; i++) { if (doms[i].getAttribute("name") == name) { result.push(doms[i]); } } return result; };
?