Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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') }}"
        });
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reinitialize #datatable #button #click
ADD COMMENT
Topic
Name
2+7 =