sorting - Sort a table with multiple <tbody> in jquery table sorter 2.0 -


i have table lets say

   <table id="mytable"> <thead> <th>id</th> <th>name</th> </thead> <tbody> <tr> <td>1</td> <td>sam</td> </tbody> <tbody> <tr> <td>2</td> <td>alex</td> </tbody> </table> 

how can sort using tablesorter 2.0 if use $("#mytbale").tablesorter(); sort single tbody.

i have fork of tablesorter sort each tbody separately. if have tbody don't want sort, add class name contained within cssinfoblock option - default tablesorter-infoonly.

<tbody class="tablesorter-infoonly">   <tr>     <th>the contents of tbody</th>   </tr>   <tr>     <td>will not sorted</td>   </tr> </tbody> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -