Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/433.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用TableSorterjQuery进行多表排序_Javascript_Jquery - Fatal编程技术网

Javascript 使用TableSorterjQuery进行多表排序

Javascript 使用TableSorterjQuery进行多表排序,javascript,jquery,Javascript,Jquery,我在不同的表中使用JQuery Tablesorter,它工作得很好。现在,我尝试以不同的方式排序,其中一个表包含表thead,另一个表包含表tbody。我的桌子看起来像- <table id="tbl" class="tablesorter"> <thead> <tr> <th>ID</th> <th>Name</th> &

我在不同的表中使用JQuery Tablesorter,它工作得很好。现在,我尝试以不同的方式排序,其中一个表包含
表thead
,另一个表包含
表tbody
。我的桌子看起来像-

<table id="tbl" class="tablesorter">
    <thead>
       <tr>
           <th>ID</th>
           <th>Name</th>
           <th>Age</th>
       </tr>
    </thead>  
</table>
<table id="tbl1"> 
    <tbody>
       <tr>
           <td>21</td>
           <td>abc</td>
           <td>82</td>
       </tr>
       <tr>
           <td>12</td>
           <td>ttt</td>
           <td>90</td>
       </tr>
    </tbody>
</table>

身份证件
名称
年龄
21
abc
82
12
ttt
90
谁能帮助我如何实现这一点,或者这在Tablesorter中是不可能的


谢谢

您可以同时添加thead和tbodytable@PrashantPatil,对于其他一些功能,我不能使用表1中的AD是的,我看到了。但是,如果您在一张桌子上应用了表格分拣机,那么它就不能在另一张桌子上应用automatically@PrashantPatil,当我在同一个表中使用thead和tbody时,我的其他函数停止工作,所以我需要将其分开。哦,这是不可能的。。您需要更改为table sorter的核心js文件,您可以将thead和tbody添加到一个文件中table@PrashantPatil,对于其他一些功能,我不能使用表1中的AD是的,我看到了。但是,如果您在一张桌子上应用了表格分拣机,那么它就不能在另一张桌子上应用automatically@PrashantPatil,当我在同一个表中使用thead和tbody时,我的其他函数停止工作,所以我需要将其分开。哦,这是不可能的。。您需要将表格分拣机的核心js文件更改为您需要的文件