title: unable to set ConfirmBox value in Hidden field using javascript
body: <p>when I click on confirm box button and try to set value in hidden fields it is showing this error:</p>
  
  <blockquote>
    <p>Unable to set confirm box value in hidden field using javascript</p>
  </blockquote>
  
  <pre><code>function Confirm() {
    var confirm_value = document.getElementById('&lt;%=hdnConfirm.ClientID%&gt;');
    var answer = confirm("Record saved successfully!want to scan document?");
    if (answer) {
      confirm_value.value = "Yes";
      return true;
    } else {
      confirm_value.value = "No";
      return false;
    }
  }
  </code></pre>