use*_*011 3 checkbox jquery jstree
我正在使用jstree jquery.I想要动态选择onload选择所有节点.
或者我如何设置checked ="true或false"就像在xml文件中的state ="open或close"一样.
可以任意帮助......
要在jstree使用checkbox插件运行时检查所有节点,请调用check_all()树控件或check_node()顶级节点以检查特定分支中的所有节点.
例:
$(document).ready(function() {
// select the whole jstree control
$("#tree_control").jstree("check_all");
// select a whole branch:
$('#tree_control').jstree("check_node", "#top_level_node_id");
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11104 次 |
| 最近记录: |