我有一个 tablesorter 表,目前工作正常,使用 ajax 方法更新表数据。我已经添加了 tablesorter Pager 插件,现在
$(.tablesorter').trigger("update");
更新表格时的功能,不会更新仍显示前一行/页数的寻呼机。
我在用:
//init tablesorter
$('#tblCustomers').tablesorter({
headers: { 0: { sorter: false}},
sortList: [[5,1]]
}).tablesorterPager({container: $("#pager")});
//search listener
$('input.search').change(function() {
$.post('search.php', { 'keyword' : $(this).val() }, function(data) {
$('#tblCustomers tbody').html(data);
$('#tblCustomers').trigger('update');
}
});
请指教...