title: Not able to set label text from jquery
body: <p>Requirement is to set the label text from the tree view when user select any node. While debugging I am getting hospitalName correctly but it is not setting label text.</p>
  
  <pre><code>$("[id$=HospitalTreeViewDiv] span").click(function () {
  
    var hospitalName = $(this)[0].outerText;
  
    //this is also not working
    // $("label[for='SelectedHospitalLiteral']").text(hospitalName); 
  
    $("[id$=SelectedHospitalLiteral]").val("abc");
  
  });
  </code></pre>
  
  <p>This is aspx snippet</p>
  
  <pre><code>   &lt;div runat="server" id="HospitalTreeViewDiv"&gt;
              &lt;asp:TreeView ID="HospitalTreeView" runat="server" ExpandDepth="0"&gt;
              &lt;/asp:TreeView&gt;
     &lt;/div&gt;
  
     &lt;div class="alignBottom"&gt;
          &lt;p&gt; &lt;asp:Label ID="SelectedHospitalLiteral" runat="server" &gt;&lt;/asp:Label&gt;&lt;/p&gt;
     &lt;/div&gt;
  </code></pre>