【发布时间】:2011-05-23 08:14:55
【问题描述】:
我有一个 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');
}
});
请指教...
【问题讨论】:
-
我遇到了同样的问题。这可能会有所帮助:stackoverflow.com/a/9000306/1168836
标签: jquery tablesorter pager