How to select jqGrid row on checkbox click?

前端 未结 4 2045
醉酒成梦
醉酒成梦 2020-12-19 19:22

Below is my code for jqGrid, i\'d like to select row or highlight the current row, when i check a particular checkbox inside jqgrid row. right now onSelec

4条回答
  •  长情又很酷
    2020-12-19 19:42

    One simple way to do that:

    jQuery(".jqgrow td input").each(function () {
        jQuery(this).click(function () {
            $("#grid").jqGrid('setSelection', $(this).parents('tr').attr('id'));
        });
    });
    

提交回复
热议问题