jQuery tablesorter sort only certain rows/columns

本小妞迷上赌 提交于 2019-12-11 09:14:43

问题


I have a table where some rows have a class of "parent" and some have a class of "child". The "child" rows always appear under the "parent" and you can toggle their visibility. What I want to do is use tablesorter to sort only the parent rows based on their "Last Edit Date" column, right now the childrens' "Last Edit Date" column is getting sorted too and messing up the ordering.


回答1:


See the answer to a similar question here:

Getting jQuery tablesorter to work with hidden/grouped table rows

The answer provides the following link:

http://www.pengoworks.com/workshop/jquery/tablesorter/tablesorter.htm



来源:https://stackoverflow.com/questions/3990641/jquery-tablesorter-sort-only-certain-rows-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!