How to get a jqGrid cell value when editing

前端 未结 23 2630
日久生厌
日久生厌 2020-11-27 17:43

How to get a jqGrid cell value when in-line editing (getcell and getRowData returns the cell content and not the actuall value of the input element).

23条回答
  •  悲&欢浪女
    2020-11-27 18:26

    Before i was getting : html tag of the textbox something like

    but Here is the solution to get the value from that particular column, working and tested

    function getValue(rowId, cellId) {
            var val = $("[rowId='"+rowId+"'][name='"+cellId+"']").val();
            return val;
           }
    
    var values = getValue(rowId, 'cellid');
    

提交回复
热议问题