JQuery tablesorter problem

前端 未结 6 2004
孤城傲影
孤城傲影 2021-02-01 07:13

I\'m having a couple of problems with the JQuery tablesorter plugin. If you click on a column header, it should sort the data by this column, but there are a couple of problems:

6条回答
  •  醉梦人生
    2021-02-01 07:51

    The first problem is due to the fact that the table sorter auto detects the column to a 'text'-column (probably because the empty cells). To solve this use this code to initialize the tablesorter and set all the field to either digit or currency depending on the data:

    
    

提交回复
热议问题