jquery DataTables - change value of a cell not just display value

后端 未结 2 661
無奈伤痛
無奈伤痛 2021-02-19 05:06

Using DataTables I want to change the value of the data before rendering the table. I used this:

\"fnRowCallback\": function( nRow, aData, iDisplayIndex ) {
             


        
2条回答
  •  离开以前
    2021-02-19 05:32

    You need to update the datatable, not html.

    oTable.fnUpdate( newValue, rowPos, columnPos);
    

    assuming oTable is a reference to the datatable.

提交回复
热议问题