Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35282

How to refresh datatable after adding new TR's to table.(HTML (DOM))

$
0
0

Hi everyone!

Quick question, I am using javascript to add new rows(TRs) to a datatable. When I try and use datatables functionality like Sorting, the rows disappear so it seems like I have to re-initialize or refresh DataTables. Anyone know how to do so?

Adding rows like this : $('#dtQueryResults>tbody').html(html);

Thank you for your help.


Viewing all articles
Browse latest Browse all 35282

Trending Articles