title: How to disable TextBox on client-side click on CheckBox
body: <p>How to disable <code>asp:TextBox</code> on <code>client-side</code> click on <code>HTML checkbox</code> or server-side <code>asp:CheckBox</code> using <code>JavaScript</code>?</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
      function enableTextbox() {
          // ?
      }
  &lt;/script&gt;
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;input id="checkTake" onclick="enableTextbox" title="Take?" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;asp:TextBox runat="server" ID="txtCommission" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>