I wish JStree had more examples of peforming AJAX actions when deleting a node, etc. Like how does it transfer the ID of selected node and pass that as a parameter? Spent a few hours and can't figure this one out.
<li id="10" class="open"><a style="" class="clicked" href="#"><ins> </ins>fff</a> </li>
<li id="1" class="open"><a href="#"><ins> </ins>111</a> </li>
<li id="2" class="open"><a href="#"><ins> </ins>aaa</a> <ul>
<li id="3" class="open"><a href="#"><ins> </ins>Wonderful</a> <ul>
<li id="9" class="open last"><a href="#"><ins> </ins>bbb</a>
</li>
</ul>
So if I do something like a rename, how do I get the ID in the LI tag of selected node like the node_id?
$("#tree2").tree({
callback : {
onrename : function (NODE, TREE_OBJ) {
alert(node_id);
}
} });
Any help appreciated!