JQuery tablesorter problem

前端 未结 6 2005
孤城傲影
孤城傲影 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:55

    fixed header for tablesorter plugin :

    css

    table.tablesorter thead {
    position: fixed;
    top: 35px; // 
    }
    

    JS

    function tableFixedHeader() {
       var tdUnit = $('.tablesorter tbody tr:first').children('td').length;
       for(var i=0;i

    HTML

    some buttons
    .....

提交回复
热议问题