How to add new cell and its data to existing row

How to add new cell and its data to existing row

Snehal KadweSnehal Kadwe Posts: 1Questions: 0Answers: 0
edited August 19 in Free community support

$('.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

  • colincolin Posts: 14,442Questions: 1Answers: 2,460

    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

Sign In or Register to comment.