How to change the value of a cell in datatables.net? [duplicate]

吃可爱长大的小学妹 提交于 2019-12-24 19:24:42

问题


I was trying to change a value of cell inside a table with datatables plugin. I tried below codes but it changed the whole row value.

var tbl = $('#tbl1').DataTable();

tbl[ 0 ].row( 0 ).data("new value").draw();

I only want to change a cell from a specific column. How will I include the column index in the code?

来源:https://stackoverflow.com/questions/47548303/how-to-change-the-value-of-a-cell-in-datatables-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!