我从 http://mottie.github.com/tablesorter/docs/example-options-headers.html 获得此代码:
// BONUS TIP: disable a column using jQuery data directly
// but do it before the table initializes
$("table thead th:eq(5)").data("sorter", false);
这有效,我可以添加第二行,如下所示以禁用过滤。但是,我想将它们合并为一行。我该怎么做?
// I Want to combine this into the prev line
$("table thead th:eq(5)").data("filter", false);
最佳答案
完全未经测试,但试试这个
$("table thead th:eq(5), table thead th:eq(7)").data("sorter", false).data("filter", false);
关于jQuery Tablesorter - 禁用排序和过滤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15580617/