title: Get the value of a hidden field in jQuery
body: <p>I have a simple JQuery code where I'm trying to get the value of an ASP:HiddenField and display it, but it does not show anything.</p>
  
  <p>The hidden field is in the form, not inside any table or div.</p>
  
  <pre><code>&lt;asp:HiddenField ID="hdnID" runat="server" /&gt;
  </code></pre>
  
  
  
  <pre><code>$(document).ready(function () {
      $("#btnload").click(function () {
          alert($("#hdnID").text());
      });
  });
  </code></pre>
  
  <p>I am setting the value of hidden field on page load and then when I click the button I want to display the value using alert. It shows an empty alert box every time.</p>
  
  <p>What am I doing wrong?</p>