datatables jquery click event not working after pagination

后端 未结 6 1070
轮回少年
轮回少年 2020-12-17 08:50

I am using http://datatables.net/


I trigger ajax call

6条回答
  •  温柔的废话
    2020-12-17 09:09

    The main important thing is to reassign the elements when click the pagination.

    //function to assign event
    var assign_actions = function(){
      //Some code  
    }
      //when the page is ready
      $( document ).ready(function() {
        assign_actions();
        //Code to assign event when paginate
         $('.paginate_button').on('click', function(){
           assign_actions();
         });
       });
    

提交回复
热议问题