How to set dynamically the Ajax URL of a dataTable?

后端 未结 3 1806
予麋鹿
予麋鹿 2020-12-09 12:04

I\'m using jQuery DataTables, my JavaScript code is shown below:

$(document).ready(function() {
   var tbl = $(\'#table_tabl\').DataTable({
      responsive:         


        
3条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 12:25

    I found it :

    $("#salle_code").on("change", function(){
                    tbl.ajax.url("server_processing_reservTables.php?salle_code="+$(this).val()).load();
                });
    

提交回复
热议问题