0

我想将 jsTree 与复选框一起使用,但它不起作用。

我的代码:

$("#tree").jstree({
    "json_data" : {
        "data" : data
    },
    checkbox: true,
    checkboxName: 'checkbox1[]',
    "plugins" : [ "themes", "json_data", "ui", "checkbox", "types" ]
});

树看起来不错并且可以工作,但我没有选择项目的复选框。

有人可以帮忙吗?

4

1 回答 1

0

这可能会帮助你。:)

$("#tree").jstree({
"plugins" : ["themes","json_data","ui","checkbox", "types"],
"json_data":{
    data : data
},
"checkbox": {
    two_state: true
}});
于 2013-07-15T17:13:12.223 回答