How to dynamically add a row and keep custom classes for td's
How to dynamically add a row and keep custom classes for td's
I have some tables that need custom classes on the td's. When I initially build the table from server-side data, this is not a problem. However, when I want to update the table with new data from a ajax call using the fnAddData() method, I don't see how to add my custom classes to the td elements of the new row.
What ends up happening is that part of my table is styled correctly, and the newly inserted rows are not styled correctly.
How can I achieve this desired functionality?
Thanks
What ends up happening is that part of my table is styled correctly, and the newly inserted rows are not styled correctly.
How can I achieve this desired functionality?
Thanks
This discussion has been closed.
Replies