jQuery tablesorter仅对某些行/列进行排序 [英] jQuery tablesorter sort only certain rows/columns

查看:335
本文介绍了jQuery tablesorter仅对某些行/列进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表,其中某些行具有父"类,而某些行具有子"类. 子"行始终显示在父"下,您可以切换其可见性.我想做的是使用tablesorter根据其上次编辑日期"列对仅父行进行排序,现在孩子的上次编辑日期"列也得到了排序并且弄乱了订购.

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.

推荐答案

在此处查看类似问题的答案:

See the answer to a similar question here:

获取jQuery tablesorter以与隐藏/分组一起工作表格行

答案提供以下链接:

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

这篇关于jQuery tablesorter仅对某些行/列进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆