jqGrid遍历所有行及获取某一行数据
$("#gridTable").find("tbody tr").not(".jqgfirstrow").each(function (i) { var inventoryQty = $(this).find('[aria-describedby="gridTable_InventoryQty"]').text(); alert(inventoryQty); if (inventoryQty == "") { hasInventoryQty = false; } });
not(".jqgfirstrow")表示排除第一行表头
微信号:jamesworkshop 学习QQ群:364976091
浙公网安备 33010602011771号