title: How to set value for hidden variable in jquery
body: <p>I am trying to set value 1 for hidden field while making checkboxes as false to not fire the CheckedChanged event.    </p>
  
  <pre><code>$('#&lt;%=FindControl("hdfValidateCheck").ClientID %&gt;').val("1");
  $get('&lt;%= FindControl("chkUK").ClientID %&gt;').checked = false;
  $get('&lt;%= FindControl("chkUS").ClientID %&gt;').checked = false;
  $('#&lt;%=FindControl("hdfValidateCheck").ClientID %&gt;').val("0");
  </code></pre>
  
  <p>But here hidden fields are not set properly and the following code executes completely</p>
  
  <pre><code>protected void chkUS_CheckedChanged(object sender, EventArgs e)
  {
      if (chkUS.Checked)
      {
          if (hdfValidateCheck.Value == "0")
          {
              radWindowManager.RadConfirm("Are you sure you want to check?", "confirm" + this.ClientID, 300, 100, null, "");
          }
      }
  }
  </code></pre>
  
  <p>I want this line <code>$('#&lt;%=FindControl("hdfValidateCheck").ClientID %&gt;').val("1");</code> to be corrected and even I want to shift the <code>chkUS_CheckedChanged</code> event from Server side to Client side.</p>