Reputation: 1887
I getting the following error:
.tableSorterPager is not a function.
I can't find my mistake in the following code:
<script type="text/javascript">
$(function() {
$("table")
.tableSorter({widthFixed: true, widgets: ['zebra']})
.tableSorterPager({container: $("#pager")});
});
</script>
Upvotes: 4
Views: 3774
Reputation: 8785
The error means the tableSorterPager plugin was not initialized before you called it.
Possible reasons:
<script type="text/javascript" src="/path/to/jquery.tablesorter.pager.js"></script>
). tableSorter pager is a separte plugin to tableSorter.Upvotes: 4