title: Disable a textbox if checkbox is checked
body: <p>I have an HTML table where there is a checbox and a textbox in everyrow. The idea here is every time a checkbox is checked, the textbox will be disabled. Here is the code:</p>
  
  <pre><code> &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt;Value1&lt;/td&gt;
      &lt;td&gt;Value2&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="textbox" /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="checkbox" class="Blocked" onclick="myFunction(this)"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
  
  
  &lt;script src="/Scripts/jquery-1.7.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          function myFunction(chk) {
               //disable the textbox here
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>Can you help me with this? Also, if I unchecked the checbox, I want my textbox to be enabled back. Thanks!!</p>