jsTree opened node attributes... how to get?
I am new to jsTree and have some problems getting some attributes of the
nodes. Here is my code...
var $myTree = $('#treeDiv').html(res).jstree({
...options
}).on("loaded.jstree", function () {
$myTree.jstree('open_node', '#' + IdToOpen, false, true);
});
$myTree.bind("open_node.jstree", this.onNodeOpen);
function onNodeOpen(event, data){...here i want to get some of the
attributes of opened node};
my nodes have this structure
<li><a href='#' id='some guid' rel='some string' accesskey='some
number'>Title of node</a></li>
now i want to retrieve id, rel and accesskey attribute values in
onNodeOpen function, how can i do that?
No comments:
Post a Comment