title: jstree get the level of selected node
body: <p>How can I get the degree/level of the currently selected node? I.e. the number of parents it has.</p>
  
  <p>I have the section which executes on selection of a node as such:</p>
  
  <pre><code>.bind("select_node.jstree", function (event, data) { 
          var nodeInfo = $("#" + data.rslt.obj.attr("id"));
          console.log(data.rslt.obj.attr("id")); // the id of the node
          console.log(nodeInfo.children("a").text()); // the name of the node
                      // the level of the node???
  });
  </code></pre>