gpt4 book ai didi

jQuery Tablesorter - 禁用排序和过滤

转载 作者:行者123 更新时间:2023-12-01 02:58:18 26 4
gpt4 key购买 nike

我从 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com