Disable JSTREE check box
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Just curious to know if there is any way in JSTREE to disable checkbox? I basically need to disable(not deselect) all my selected child nodes when I click on the parent node. 回答1: You need to create a new type(disabled) for this. It can be done as follows "types" : { "types": { "disabled" : { "check_node" : false, "uncheck_node" : false } } } and then assign that type as .set_type("disabled", "#node5"); More documentation is here. For disabling all child nodes, create an event handler for the change_state event $("#treeElement").bind("change