How to change a row's particular cell value in jqgrid

前端 未结 3 1625
一整个雨季
一整个雨季 2020-12-14 01:18

I want to change a particular rows\'s cell value, I have the row Id. and I have tried using the following. But it doesnt work.

$(\"#my-jqgrid-table\").jqGrid         


        
3条回答
  •  無奈伤痛
    2020-12-14 01:57

    Thanks all for your effort, with help of a friend at work I managed to get this working with some jquery.

    Here is what I did...

    $("#" + rowId).find('td').eq('3').html('newText')
    

    here 3 is used because I want to change my 3rd column.

    Hope this is useful for someone in future :)

提交回复
热议问题