ho trovato un modo per farlo. Nel mio caso sto usando xml come origine dati per l'albero. Sto vincolando l'evento open_node al jstree nel modo seguente. Fai attenzione che anche se sto usando xml, la struttura interna è quella dei dati html.
// jsTree Configuration hash
var jsTreeConfig = {};
$("#demo1").jstree(jsTreeConfig)
.bind('open_node.jstree', function(e, data) {
var parentObj = data.rslt.obj; // parent object
var jstreeInstance = data.inst; // jstree instance
$(data.rslt.obj).find("li").each(function(idx, listItem) {
var child = $(listItem); // child object
// do Stuff with child which can be any level of hierarchy depth
// ...
});
});
P.S. - Ho risposto alla mia domanda qui. – Sid