tablesorter with two header rows

后端 未结 1 1964
予麋鹿
予麋鹿 2021-01-04 21:24

I am using the tablesorter jquery plugin and my table has two rows in the header. Is there any way to enable sorting on my table? it should be able to be sortable by the sec

相关标签:
1条回答
  • 2021-01-04 22:12

    All you had to do was try ;)

    http://jsfiddle.net/Mottie/4mVfu/402/

    If you want the top row disabled, then add a sorter-false class to those header cells:

    <tr>
      <th class="sorter-false" colspan="3">January</th>
      <th class="sorter-false" colspan="3">February</th>
      <th class="sorter-false" colspan="3">March</th>
    </tr>
    

    http://jsfiddle.net/Mottie/4mVfu/403/

    0 讨论(0)
提交回复
热议问题