Exclude a column from being sorted using jQuery tablesorter

后端 未结 8 1794
有刺的猬
有刺的猬 2021-02-01 21:30

I am looking for a way to exclude a single column from being sorted using jQuery\'s tablesorter plugin. Specifically, I have a fairly large table and would like to keep a \"row

8条回答
  •  故里飘歌
    2021-02-01 22:05

    For those who find this while looking for a way to exclude a column from being sortable (i.e. clickable header on the column), the below example excludes column 4 (zero-indexed) from being sorted):

    $("table").tablesorter({
        headers: {4: {sorter: false}}
    });
    

提交回复
热议问题