<div id="tabs">
<ul>
<li><a href="p1.php"><span>Table 1</span></a></li>
<li><a href="p2.php"><span>Table 2</span></a></li>
<li><a href="p3.php"><span>Table 3</span></a></li>
</ul>
</div>
$('#tabs').tabs({
load: function() {
$("#ReportTable").tablesorter(
}
});
… where the ID of “ReportTable” is the table ID for the table in p1.php.
I have tried the following things to no avail:
1. Given the same ID to the tables in the different tabs. Gave the table id’s in the pages p2.php and p3.php also “ReportTable”. The thought is that when the callback load function runs after each tab load it will reload the table. Since it has the same name, it should work.
$('#tabs').tabs({
load: function() {
$("#ReportTable").tablesorter(
$("#ReportTable2").tablesorter(
$("#ReportTable3").tablesorter(
}
});
3. Used the “show” callback function instead.
None of this works. Always the same result. The table in the first tab sorts and the rest do not. Any suggestions?
Thanks,
Mike