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?

yusrilyusril 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?

Answers

  • kthorngrenkthorngren Posts: 21,591Questions: 26Answers: 5,006

    You can try adding table.draw(false); to the end of $("#change").on("click",function ().

    Kevin

This discussion has been closed.