开发者

Nested tables with tablesorter

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 erro开发者_开发百科r is thrown.

Nested tables with tablesorter

I would like to have either:

  • the nested tables not sortable
  • the sorting on the nest tables actually work.

but not the status quo.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜