Datatables do not load when updated by jQuery

Datatables do not load when updated by jQuery

samuel.oldrasamuel.oldra Posts: 1Questions: 1Answers: 0

I have a table and I update it by jQuery, but when I load it again by jQuery AJAX, the Datatables is not loaded correctly.

$("#datatable-responsive").DataTable({
    dom: "Bfrtip",
    buttons: [
        ...
    ],
    responsive: true,
    destroy: true
});

At each run of ajax I call a function that executes the above code.

I've tried different forums, but nothing seems to work.

This discussion has been closed.