Answers for "how to reinitialize datatable using javascript"

2

Cannot reinitialise DataTable

$('#dataTable').dataTable({
    ...
    ....
    "bDestroy": true
});
Posted by: Guest on January-26-2021
1

reinitialize datatable on button click

$(function() {
    $('#proces_input').on('click', function() {
        alert('Im in')
        var table = $('#dt_110x_complex').DataTable({
            paging : true,
            destroy : true,    <-------Added this 
            scrollY: 300,
            ajax: "{{ url_for('complex_data') }}"
        });
    });
});
Posted by: Guest on July-12-2021

Code answers related to "how to reinitialize datatable using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language