I am using jsTree 3.3.1 and the following image is the tree generated. Now you can see i have selected D and E, then its parents(B and C ) also selected. I would like to get the selected parents(B and C) id along with the childs(D and E). I have used the following function and it not working for me. Also i have found this url which is not working for me. Any help really appreciated.
var arr = new Array();
$("#testtree").jstree('get_checked').each(function(index) {
arr.push($(this).attr('id'));
});