Sort only one column with jquery and tablesorter

前端 未结 3 1470
孤独总比滥情好
孤独总比滥情好 2021-01-05 17:26

At the moment im using jquery tablesorter and tablesorter filter. My problem is that i want that my filter would filter only one column. Now its filtering all columns. You c

3条回答
  •  鱼传尺愫
    2021-01-05 18:08

    The easiest solution for that is to modify the selectorHeaders in the javascript file and set it to something other like:

     selectorHeaders: 'thead th.sortable'
    

    Now, the only thing you have to do is to give only the collumns you want to be sortable the css class sortable.

提交回复
热议问题