多选 获取多行的id
var gr = jQuery("#tbList").jqGrid('getGridParam', 'selarrrow');
循环遍历将值存为数组对象
var rowData = []; for (i = 0; i < gr.length; i++) { rowData.push($("#tbList").jqGrid('getRowData', gr[i])); }
转换为json数组传到后台
var data = JSON.stringify(rowData);
清空数据
jQuery("#tbList").jqGrid("clearGridData");
标签:多行,tbList,jqGrid,选择,rowData,var,gr From: https://www.cnblogs.com/hu-kang/p/16981272.html