title: Enable checkbox on click of other checkbox using Jquery
body: <p>i have disabled all the checkboxes except one. On click of that checkbox i want to enable all the checkbox. and if that checkbox is unchecked then all other checkboxes should remain disabled. Could anybody please help me with this.
  I have tried to use </p>
  
  <pre><code>$(document).ready(function() {&lt;br&gt;
      if ($('#mainCheckbox').is(':checked')) {&lt;br&gt;
       $(".otherCheckbox").removeAttr("disabled");
       }      
  });
  </code></pre>
  
  <p>But this isn't working  for me.</p>