Nested tables with tablesorter

前端 未结 1 1621
名媛妹妹
名媛妹妹 2021-02-09 17:10

I have nested tables within a table that has the tablesorter applied to it.

It adds sort headers to the nested tables, but they don\'t sort the rows and a Javascript err

1条回答
  •  太阳男子
    2021-02-09 18:13

    Your first option is much easier (making the nested tables not sortable):

    Construct the table something like so:

    $('.tablesorter').tablesorter({selectorHeaders: '> thead > tr > th'});

    And then you might also need to prefix all your css with something like:

    table.tablesorter > thead > tr > ...

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