title: JQuery: Multiple checkbox to disable multiple textbox
body: <p>I have multiple checkbox in my form; each to disable a specific textbox.</p>
  
  <p>Currently I have this in my form.</p>
  
  <pre><code>$("#check1").click(function() {
      $("#text1").attr('disabled',! this.checked)
  });
  
  
  $("#check2").click(function() {
      $("#text2").attr('disabled',! this.checked)
  });
  
  ...
  ...
  ...
  </code></pre>
  
  <p>Any tips on how I can shorten this up? I think having 1 line of code for each checkbox and textbox seems to be too much, repetitive and redundant. Thank you in advance.</p>