How can i empty and append a new value in column?

How can i empty and append a new value in column?

thunanthunan Posts: 2Questions: 1Answers: 0
edited April 2022 in DataTables

When i click in the action, i want change de color of status.

With this command $row.prevObject[0].parentElement.parentElement.cells[8] i can see the span, but i don´t know how remove this and put another with other color.

I tried this, but doensin´t work...
$row.prevObject[0].parentElement.parentElement.cells[8].closest('td').append('<span data-toggle="tooltip" title="Rejected." style="height: 15px;width: 15px;background-color: red;border-radius: 50%;display: inline-block;"></span>')

Answers

Sign In or Register to comment.