取得td中的值

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)