单击“多个”复选框时,如何在jqGrid中获取多个jqGrid
发布于 2018-07-04 09:30:04
使用JQUERY试试这个
$('#GetpassTable input:checkbox').each(function(i){
console.log($(this).prop('checked')+' '+i);
})
若要在复选框中获取id,请单击“尝试以下内容”
$(document).on('click','#GetpassTable tbody input:checkbox',function(){
console.log('clicked id : '+$(this).closest('tr').prop('id'));
});
如果您有任何错误,请查看控制台窗口
https://stackoverflow.com/questions/51169448
复制相似问题