Hi,
You should open direct descendant of the node and then select the
node, you want to be selected. When you are opening node and have set
open_parents to true (which is default), then all parents of the
opened node will be opened too.
So, your code should look like this:
$.jstree._focused().open_node($.jstree._focused().get_parent("#" +
id));
and after this, you could put your code, it means:
$.jstree._focused().select_node("#" + id);
Though, i haven't tested it.
Best regards,
ChrisRaven