gpt4 book ai didi

jquery - 折叠 jquery checkboxtree 中的所有树

转载 作者:行者123 更新时间:2023-12-01 04:14:03 25 4
gpt4 key购买 nike

我使用jquery checkboxtree我想以折叠模式启动树。

我用这个:

$(document).ready(function(){
$('#ch_group_menu').checkboxTree();
});

我会将树和所有 child 一开始就折叠。我该怎么办?

最佳答案

你可以使用

$('#ch_group_menu').checkboxTree('collapse','.expanded');

生成表单并应用 checkboxTree 后。

关于jquery - 折叠 jquery checkboxtree 中的所有树,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16634102/

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