【发布时间】:2013-03-22 22:07:32
【问题描述】:
我从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);
【问题讨论】:
-
除了禁用排序和过滤并将它们合并到一行之外,还可以看看如何禁用多列。例如,在一行代码中禁用第 5 列和第 7 列中的排序和过滤。
标签: jquery filter tablesorter