title: Unable to set hidden field value in javascript
body: <p>I have defined a hidden filed in aspx:-</p>
  
  <pre><code>&lt;asp:HiddenField runat ="server" ID="hfBrand" value = "False" /&gt;
  </code></pre>
  
  <p>A combo-box control is calling a JavaScript function function:-</p>
  
  <pre><code>&lt;telerik:RadComboBox ID="Brands" runat="server"  
                  onclientselectedindexchanged="LoadProperties"
                  AutoPostBack="True"&gt;
  &lt;/telerik:RadComboBox&gt;
  </code></pre>
  
  <p>In that function , I am trying to set that hidden field value to "True":-</p>
  
  <pre><code>function LoadProperties(sender, eventArgs)
  { 
  var lblBrand = document.getElementById('&lt;%= hfBrand.ClientID %&gt;').value;
  alert(lblBrand);
  document.getElementById('&lt;%= hfBrand.ClientID %&gt;').value = "True";
  alert(lblBrand)
  }
  </code></pre>
  
  <p><strong>QUESTION</strong>:- I can't set the hidden field value to TRUE. WHY it so?? and How to do that?</p>
  
  <p>UPDATE:-
  Here is the solution which got me right desired output:-</p>
  
  <pre><code>var lblBrand = document.getElementById('&lt;%= hfBrand.ClientID %&gt;').value;
  alert(lblBrand);
  lblBrand = "True";
  alert (lblBrand);
  </code></pre>
  
  <p>Thnx to everyone who helped me.</p>