title: How to disable a DIV on Checkbox Click by using JS?
body: <p>I am very new to JavaScript and I have tried this code but it's not working. Here <code>UPDOC</code> is the <code>div</code> id:</p>
  
  <pre><code>function ChangeText() {
      var chkb = document.getElementById('&lt;%= CHKDOC.ClientID %&gt;');
      if (chkb.checked)
          document.getElementById('&lt;%= UPDOC.ClientID %&gt;').disabled = false;
      else
          document.getElementById('&lt;%= UPDOC.ClientID %&gt;').disabled = true;
  </code></pre>