On btn click Update rendered cell
On btn click Update rendered cell
Igorski88
Posts: 25Questions: 8Answers: 0
As the title states, I am trying to update a cell with a new button once the old button has been clicked.
"<input id='RUSure' value='Are you sure?'/>"
var BTN = "<input id='RUSure' value='Are you sure?'/>"
table.cell(row, 4).data(BTN ).draw();
This is not working.
I have tried:
.value()
.clear().draw()
.invalidate().
This does however work on a separate cell with plain text.
Here is my test case: HERE
This discussion has been closed.
Answers
The problem occurs because I was rendering my column wrong.
To fix I took out this
data: null,
I also added a few if statements and my problem was resolved.
Working version HERE