jQuery tablesorter - loss of functionality after AJAX call

后端 未结 8 1013
庸人自扰
庸人自扰 2021-02-14 06:00

I have recently been experimenting with the tablesorter plugin for jQuery. I have successfully got it up and running in once instance, and am very impressed. However, I have tri

8条回答
  •  日久生厌
    2021-02-14 06:34

    Use the ajaxStop function and the code will run after the ajax call is complete.

    $("#DivBeingUpdated").ajaxStop(function(){ 
        $("table").tablesorter()
    });
    

提交回复
热议问题