亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        js使用for循環(huán)與innerhtml獲取選中tr下td值

        字號(hào):


            function getparentel (el, tagname) {
            if (!el) return el;
            do {
            el = el.parentnode;
            } while(el && el.tagname !== tagname);
            return el;
            }
            function temp(){
            //得到選中row的value值
            var temp=document.getelementsbyname('id');
            for(var i=0;i<temp.length;i++){
            if(temp[i].checked==true){
            edit=temp[i].value;
            var tr = getparentel(temp[i], 'tr');
            var tds = tr.cells;
            for (var j = 0; j < tds.length; j++) {
            var tdinner = tds[j].innerhtml;
            alert(tdinner);
            }
            }
            }
            }