Search
 
SCRIPT & CODE EXAMPLE
 

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') }}"
        });
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript checkbox checked event 
Javascript :: get the current date time in javascript in 12 hour format 
Javascript :: fibonacci sequence in javascript 
Javascript :: how to store words in an array in javascript 
Javascript :: promises basic structure 
Javascript :: width 100% react-native 
Javascript :: remove attribute javascript 
Javascript :: allow only letters in div javascript 
Javascript :: update angular cli 10 
Javascript :: angular create component without test 
Javascript :: javascript fetch json 
Javascript :: jquery select change get selected value 
Javascript :: npm install router dom 
Javascript :: Get Current Date And Time In Node.js 
Javascript :: javascript replace all spaces with dashes 
Javascript :: momentjs date and time string add minutes 
Javascript :: leap year condition in javascript 
Javascript :: javascript generate random hex 
Javascript :: javascript reverse array without modifying 
Javascript :: js input validate excel file type 
Javascript :: how to extend a type in jsdoc 
Javascript :: connect vite with node js 
Javascript :: javascript delete row by id 
Javascript :: socket io https 
Javascript :: nodejs check directory exist or not 
Javascript :: typeof date javascript 
Javascript :: programmatic title react 
Javascript :: jquery if variable contains text 
Javascript :: copy text to clipboard jquery 
Javascript :: multi stage node js dockerfile 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =