Hi,
I have used jQuery table sorter plugin in my code. It works fine as long as I don't make an ajax request to load the table data dynamically. I am using combo boxes to filter the contents of the table by ajax. I read few posts which says using $("table").trigger("update");
can solve my problem. I tried it with my code but the problem is still there.
Is there any other way to solve this problem? Please help me figure out a solution. I am really stuck bad. Any help would be appreciated. Below is my code :
$(document).ready(function () {
$("#myTable").tablesorter({
widthFixed: true,
widgets: ['zebra'],
headers: {
0: {
sorter: false
}
}
}).tablesorterPager({
container: $("#pager")
});
$("#tag").change(function (event) {
$('#myTable').trigger("update");
$("#myTable").tablesorter();
});
});
Here tag is the id of a combo box named tag and myTable is the id of the table with sorter pager plugin.