title: Asp .net hidden field can't set value with jquery
body: <p>I can't set the value of a hidden field with jquery in asp .net.</p>
  
  <p>My hidden field is declared like this:</p>
  
  <pre><code>&lt;asp:HiddenField runat="server" ID="hdnSelectedTicket" /&gt;
  </code></pre>
  
  <p>And this is how I set the value:</p>
  
  <pre><code>            alert(ticketID);
              $('#&lt;%=hdnSelectedTicket.ClientID %&gt;').val(ticketID);
              alert($('#&lt;%=hdnSelectedTicket.ClientID %&gt;').val());
  </code></pre>
  
  <p>Both alerts show the right value but when I fetch it at the server it is empty.</p>