1.10 How to refresh a datatable

1.10 How to refresh a datatable

liangtpliangtp Posts: 10Questions: 5Answers: 0

Hi,

I with to create a button that refreshes the datatable, (after I key in some data to filter the datatable).
When click this button, what function shall I call to refresh the datatable.

Thanks

Answers

  • liangtpliangtp Posts: 10Questions: 5Answers: 0

    I found the answer

    $('#refreshDt').click(function() {
         var dt = $('#tblJobs').dataTable();
         dt.api().ajax.reload();
    });
    
This discussion has been closed.