title: jsTree onSelect event
body: <p>I've been trying to get the text of a node that is selected in a jsTree. I am able to populate the tree and trigger the onSelect event, but I can't find out which node was clicked. I've seen examples on the net that use <code>data.rslt.obj.attr("data")</code> to fetch the text, however this is returning undefined for me. Additionally, when I try to get the selected node using <code>.jstree('get_selected')</code> I can't find the node text anywhere in the object. How can I get the node text?</p>
  
  <p>Here is my onSelect callback function:</p>
  
  <pre><code>function onSelect(event, data)
  {
      // Get the name of the equipment that was selected.
      var selected_node = $("#equipment_tree").jstree('get_selected');
      var equipment_name = data.rslt.obj.attr("data");
  }
  </code></pre>