我通过这个 $('#' + rowid)
以及此 $('#' + rowid).find("td")
但是如何找到单个td呢?不是全部。
最佳答案
尝试使用 getCell('row_id', 'column_index')
方法。
参见文档 here
[编辑]
通过原生 Javascript;
var row = document.getElementById('row_id');
var cell = row.cells[cell_index]; //cell_index will be integer starting with 0
/*
do whatever you want with cell
*/
关于javascript - 如何在 jqGrid 的 tr 中获取特定的 td?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14746484/