Jquery dataTables and tablesorter together

后端 未结 1 948
忘了有多久
忘了有多久 2021-01-14 00:55

I had this requirement of paginating the data being shown in the table and fetching it through ajax calls - this I accomplished by using dataTables plugin with the following

相关标签:
1条回答
  • 2021-01-14 01:30

    It worked with the following change - bringing the tablesorter initialisation out

     $("#companies").tablesorter();
    

    and trigger update after every ajax call.

    "success" : function (jsonData) {
        fnCallback(jsonData);
        $("#companies").trigger("update");
    }
    
    0 讨论(0)
提交回复
热议问题