I have a tablesorter table which works fine currently, using an ajax method to update the table data. I have added the tablesorter Pager plugin and now the
$(.tablesorter').trigger("update");
function while updating the table, is not updating the pager which still shows the previous row / page count.
I am using:
//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');
}
});
Advice please...