Tablesorter Filter widget stops working after update on all browsers, no error msg

前端 未结 3 1407
栀梦
栀梦 2021-01-23 09:52

I\'m trying to see how I can fix a problem that I\'m having with jQuery Tablesoter widget called \'filter\', it stops working after the table is updated without any error messag

3条回答
  •  孤独总比滥情好
    2021-01-23 10:10

    There is a lot of code to wade through, but you might want to try updating the table contents like this:

    var $table = $("table.tablesorter");
    $table.find('tbody').html(data);
    $table.trigger("update", [true]);
    

    I'm only guessing that the replaceWith() function isn't working as intended.

提交回复
热议问题