title: How do I get the text of the currently selected node in jstree?
body: <p>This seems like it should be simple to do, but the jstree "data.rslt.obj.text()" method likes to return the text of the current node as well as all of its children.  I've figured out how to get the current node name with renaming a node (new_name), but how do I get the text of ONLY the current node when I simply select it?  Also, I'd appreciate any insight into how I would find all of these methods and properties in the jstree using chrome or firebug.  Where would I look in the list of elements that come up when I select "data.rslt", for instance.  Thanks!</p>
  
  <pre><code> $("#RequirementsTree")
      .bind("select_node.jstree", function(event, data) {
              if(is_requirement_node(data))
              {
                  var ReqCheck = data.rslt.obj.attr("name");
  
                  @* This is a REQUIREMENT *@
                  if(ReqCheck == "requirement")
                  {
                      $("#RMSDoc_RequirementFlag").val("EDIT");
                      $("#RMSDoc_RBSRequirement_RequirementsId").val(data.rslt.obj.attr("id").substring(4));
                      $("#RMSDoc.RBSRequirement.RequirementsId").val(data.rslt.obj.attr("id").substring(4));
                      $("#RMSDoc_RBSRequirement_RequirementsText").val($.trim(data.rslt.obj.text()));
                      $("#RMSDoc_TreeBranch_Text").val("");
                      $("#HierarchyText").hide();
                      $("#RMSDoc_TreeBranch_Text").hide();
                      $("#ExistingTreeSubmit").val("@Model.RMSDoc.RMSEditReqButton.ConfigurableLabelDesc");
  
                  }
                  else {
                      alert("Requirement node select error");
                  }
              }
              @* This is a TREE BRANCH *@
              else
              {
                  debugger;
                  $("#RMSDoc_RequirementFlag").val("ADD");
                  $("#HierarchyText").show();
                  $("#RMSDoc_TreeBranch_Text").show();
                  $("#RMSDoc_TreeBranch_Text").val($.trim(data.rslt.obj.text()));
                  $("#RMSDoc_TreeBranch_id").val(data.rslt.obj.attr("id").substring(4));
                  $("#RMSDoc_RBSRequirement_RequirementsText").val("");
                  $("#ExistingTreeSubmit").val("@Model.RMSDoc.RMSCreateReqButton.ConfigurableLabelDesc");
              }
       })
      .bind("create.jstree", function(e, data) {
  </code></pre>