var grid = $('AWG00020_body').getElementsByTagName("tr");
var objTr = grid.item([$("selectedGyoNo").value]);
var objTDList = objTr.childNodes;
var colCnt = objTDList.length;
var colValue = "ColValue";
for (var i = 0; i < colCnt; i++) {
var objTd = objTDList.item(i);
var content = objTd.childNodes[0].innerHTML;
colValue = colValue + content;
}
alert(colValue);
取得td中的值
最新推荐文章于 2021-04-02 05:53:33 发布