How to add new cell and its data to existing row
How to add new cell and its data to existing row
Snehal Kadwe
Posts: 1Questions: 0Answers: 0
$('.list-datatable thead tr').append('<th class="custom">Custom Heading</th>');
With the help of this code I am adding new heading to the table now I want to populate the the data within row
I am adding this with following code
$('.list-clients-datatable tbody tr td:eq($0)').append('dbfkdjbk');
but it's not working.
please any suggestions?
Replies
Because the table has changed shape, you would need to re-initialise the table. What's the reason for adding an extra column? It might be easier to have it present at initialisation, just hidden - and then when you want it you call
column().visible()
to show it.Colin