Micheal
Micheal

Reputation: 2322

tablesorter pagination does not sort on initial page load

I found a table sorter example that I am trying to use.

The table does not sort or go to next page on the first attempt when the page gets loaded. But if I change the limit and try to sort/go to next page it works. It does not throw any error either.

Here is the link: http://srikanthrajan.com/test-table/tablesorter.html

Upvotes: 1

Views: 845

Answers (1)

Tats_innit
Tats_innit

Reputation: 34107

Hey man see working demo here: http://jsfiddle.net/ZK6dZ/

you had LIMIT value empty. : http://mottie.github.com/tablesorter/docs/example-pager.html

Rest demo should fit the cause :)

code

$(function() {
    $("table").tablesorter({
        theme: 'blue',
        widthFixed: true,
        widgets: ['zebra']
    }).tablesorterPager({container: $("#pager")}); 
});​

Upvotes: 3

Related Questions