The Nirmal solution works if you click anywhere in the jstree div. I wanted to enable double-click only on the nodes themselves, and not, for example, in the space on the right. a change in solution activated this a bit:
$('#jstree-div a').live('dblclick',function (e) { var node = $(e.target).closest("li"); var type = node.attr('rel'); var item = node[0].id;
I donβt know why the attributes 'rel' and 'id' are in different places in the resulting node, but it works;)
source share