How to reload the datatable(jquery) data?

后端 未结 10 2479
萌比男神i
萌比男神i 2020-12-05 05:39

How to reload the selected tab? Actually I have problem with reloading part. When I add my data I\'ll successfully saved in datatable but in id field in database it shows pr

10条回答
  •  离开以前
    2020-12-05 06:07

    To reload the table data from Ajax data source, use the following function:

    dataTable.ajax.reload()
    

    Where dataTable is the variable used to create the table.

    var dataTable = $('#your_table_id').DataTable({
         ajax: "URL"
    });
    

    See ajax.reload() for more information.

提交回复
热议问题