views:

63

answers:

1

Hi ,

I have my code working etc for the pagination plugin but I have a slight error.

When I add a table above my table which works with the sorter and pagination the pagination does not work. I think it is because that the table above it is taking the all the features and not using them.

So is there a way to define which table to use like using a ID ?

If any one could give an example it would be great.

This is the code I am using

http://tablesorter.com/addons/pager/jquery.tablesorter.pager.js

A: 

You would define which table to apply the tablesorter to like this:

Assuming you have two tables, <table id="table1">..</table> and <table id="table2">..</table> and you want to apply the table sorter only to the second table, use:

$(document).ready(function() {
    $("#table2").tablesorter(); 
}); 
Zoe