title: Enable checkbox if other checkbox is checked
body: <p>I have a table with multiple columns, 2 of them being checkboxes. However, I only want the first column of checkboxes to be enabled on page load. I only want the second column of checkboxes to be enabled if a checkbox is checked in the first column.</p>
  
  <p>My current code will do that but I am wanting the checked checkbox to only enable/disable the specific checkbox in that same row, not all of them in the entire column.</p>
  
  <p>How can I do this? This is what I have so far:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $('.paid').attr('disabled', true);
  
    $('.selected').change(function() {
      $('.paid').attr('disabled', !this.checked);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!--checkbox that is enabled on page load--&gt;
  &lt;td align="center"&gt;&lt;input type="checkbox" id="check" class="selected" name="selected"&gt;&lt;/td&gt;
  
  &lt;!--checkbox that will be enabled/disabled based on checkbox above--&gt;
  &lt;td align="center"&gt;&lt;input type="checkbox" id="paid" class="paid" name="selected"&gt;&lt;/td&gt;</code></pre>
  </div>
  </div>
  </p>