title: ASP.NET set hiddenfield a value in Javascript
body: <p>I don't know how to set the value of a hiddenField in Javascript.  Can somebody show me how to do this?</p>
  
  <p>Javascript:</p>
  
  <pre><code>document.getElementById('hdntxtbxTaksit').value = "";
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;asp:HiddenField ID="hdntxtbxTaksit" runat="server" Value="" Visible="false"&gt;   &lt;/asp:HiddenField&gt;
  </code></pre>
  
  <blockquote>
    <p>error : "Unable to get value of the property \'value\': object is null or undefined"</p>
  </blockquote>