if you're using JSON and you deliver your nodes with a metadata like this:
{
"data": "This is the name of the node",
"metadata": {
"number": "no1",
"description": "Description"
}
}
...you'll be able to get (and set) the data like this:
$('div#jstree')
.jstree(
...options...
)
.bind('select_node.jstree', function(e, data){
alert( $(data.rslt.obj).data('description') );
});
This works with the newest commit (rc3/r233). In older versions it uses
$(data.rslt.obj).data("jstree").description
...hope this helps.
Grettings,
Markus.