我正在使用jquery-bootgrid作为数据网格manager.Is,现在可以从隐藏列中获取值了吗?
发布于 2014-12-27 14:37:41
行($(console.log).data(“console.log-id”));
var $tr_parent=$(this).parents("tr").first();
console.log($tr_parent.children('td').eq(3).text());
这段代码运行良好
将td计数从0开始提升到X
计算td个数包含数据,根据td个数获取数据
发布于 2015-06-25 03:23:38
要获得隐藏的列行值,需要为该列添加data-identifier="true"。然后如果它在行上点击,你可以通过var id= $(this).data("row-id")得到值;
发布于 2017-08-06 09:37:32
这对我很有效。在选择编辑按钮时:
grid.find(".command-edit").on("click", function(e)
{
var ele =$(this).parent();
var FirstColumn = ele.siblings(':first').html();
var SecondColumn = ele.siblings(':nth-of-type(2)').html();
var ThirdColumn = ele.siblings(':nth-of-type(3)').html();
}https://stackoverflow.com/questions/25438518
复制相似问题