title: .prop, .attr not working when trying to disable asp:CheckBox
body: <p>I have a bunch of asp:checkboxs. Most of them have a class of "restricted" and all of them have clientIdMode='static'. I have a separate checkbox with id='other'. When this box is clicked, I want the boxes with class='restricted' to be disabled. Problem is I can't get it to work in Firefox or Chrome. I've found a bunch of related questions on the net but no real answers.</p>
  
  <pre><code>$('#other').click(function() {
      if ($(this).is(":checked")) {
          $(".restricted").prop("disabled", "disabled");
      }
      else {
          $(".restricted").prop("disabled", false);
      }
  });
  </code></pre>
  
  <p>I've tried using combinations of .prop, .attr, ("disabled", true), and ("disabled", "disabled") but I can't get it to work outside IE.</p>
  
  <p>EDIT: Here is some html as well:</p>
  
  <pre><code>&lt;fieldset&gt;
      &lt;legend&gt;Accessories&lt;/legend&gt;
      &lt;ol&gt;
          &lt;li&gt;
              &lt;asp:CheckBox ID="cb1" runat="server" ClientIDMode="Static" CssClass="restricted" /&gt;
              &lt;label for="cb1"&gt;VAL 1&lt;/label&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;asp:CheckBox ID="cbP2" runat="server" ClientIDMode="Static" CssClass="restricted" /&gt;
              &lt;label for="cb2"&gt;VAL 2&lt;/label&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;asp:CheckBox ID="cb3" runat="server" ClientIDMode="Static" CssClass="restricted" /&gt;
              &lt;label for="cbPickupInside"&gt;VAL 3&lt;/label&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;asp:CheckBox ID="cb4" runat="server" ClientIDMode="Static" CssClass="restricted" /&gt;
              &lt;label for="cb4"&gt;Value 4&lt;/label&gt;
          &lt;/li&gt;
      &lt;/ol&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>And the checkbox that when clicked should disable the other:</p>
  
  <pre><code>&lt;fieldset&gt;
  &lt;ol&gt;
      &lt;li&gt;
          &lt;asp:CheckBox ID="cbG" runat="server" ClientIDMode="Static" /&gt;
          &lt;label for="cbG"&gt;VAL G&lt;/label&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p> </p>