$("-sharpjurisdictionBox").on("changed.jstree", function (e, data) {
console.log(data.selected);
console.log(data)
});
data:[
{
"id":"00",
"text": "",
"state": {
"selected": false
},
},
{
"id":"01",
"text":"",
"children": [{
"id":"0101",
"text": "",
"state": {
"selected": false
}
}, {
"id":"0102",
"text": "",
"state": {
"selected": false
}
},
]
}
]
now the requirement is to know the id of the selected node. How to traverse the original data to make the selected node"s "selected": the selected attribute of false is saved to the background as true,