On btn click Update rendered cell with new btn

On btn click Update rendered cell with new btn

Igorski88Igorski88 Posts: 25Questions: 8Answers: 0
edited May 2019 in Free community support

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, 3).data(BTN ).draw();

This is not working.

I have tried:
.value()
.clear().draw()
.invalidate().

This does however work on a cell with plain text.

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @Igorski88 ,

    Yep, I would expect that to work too. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • Igorski88Igorski88 Posts: 25Questions: 8Answers: 0
    edited May 2019

    @colin ,
    Sorry I have realized after reading the rules I have posted this as a discussion and not a question. I'd like the mods the delete this "discussion". I have posted a new "question" with a test case. Thanks for the help.

This discussion has been closed.