How to modify the css of an element inside DataTable grid's cell in real time?
How to modify the css of an element inside DataTable grid's cell in real time?
yusril
Posts: 14Questions: 10Answers: 0
Hi everyone,
Here is my demo: http://live.datatables.net/pokopiju/17/edit
In there, you can find a button named "Change". By choosing a row and then clicking the Change button, it should change the green rectangle color to be green.
However, in this case, it doesn't change the color immediately. I have to select another row, then the grid will render the green color.
Is there anyone who knows how to modify it directly?
This discussion has been closed.
Answers
You can try adding
table.draw(false);
to the end of$("#change").on("click",function ()
.Kevin