Answers for "destroy and reinitialize datatable jquery"

0

remove previous datatable instance

//Destroy the old Datatable
$('#equictntbl').DataTable().clear().destroy();
Posted by: Guest on November-11-2020
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 "destroy and reinitialize datatable jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language