How I can change the content of cell when the cell (td) contains html

How I can change the content of cell when the cell (td) contains html

kassarnkassarn Posts: 1Questions: 1Answers: 0
edited June 2021 in DataTables 1.10

Debugger code (debug.datatables.net): http://live.datatables.net/fologagu/1/edit
Description of problem: Is it possible to change cell value using cell().data() API, when the content of the cell is HTML in my example button. The value of cell is changing only when the cell content is text: table.cell(4, 4).data('test').draw();

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954
    Answer ✓

    Your test case had an error with table.cell(4, 4).data('test').draw();. Row 4 (the 5ht row) is not in the table. I updated your test case so it runs now:
    http://live.datatables.net/qewecara/1/edit

    Please update the test case to show the problem you want help with.

    Kevin

Sign In or Register to comment.