我有一個表有兩個表標題<th>。我需要使用jQuery表格排序來排序兩個不同的集合。jQuery表格數據分類器插件多個<th>行在一張表
$(function()
{
$(".listtable").tablesorter({
sortList : [[1,0]],
widgets: ["zebra", "columns"],
widgetOptions: {
columns: [ "primary", "secondary", "tertiary" ],
columns_thead : true,
columns_tfoot : true
}
});
我能整理一組TH的,但我需要添加另一組TH和TBODY在現有的表:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listtable">
<thead>
<tr>
<th>Heading Set1 - A</th>
<th>Heading Set1 - B</th>
<th>Heading Set1 - C</th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
<thead>
<tr>
<th>Heading Set2 - A</th>
<th>Heading Set2 - B</th>
<th>Heading Set2 - C</th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
排序單TH是如下腳本。我的腳本不允許在一個表中排序兩組。
你有沒有找到這方面的解決方案? – Stefan