title: jQuery - Checkbox not being checked
body: <p>I'm using checkboxes to toggle the enabled and disabled state of some multi-lists on a registration form. The checkbox is labeled with the category, and the multi-list contains the items that belong to that category.</p>
  
  <p>I'm using jQuery 1.7.2.</p>
  
  <pre><code>        $('#sch_cat_hockeyschools').toggle(function(ev) {
                  ev.stopPropagation();
                  $("#type_select_hockeyschools").prop("disabled", false);
                  $("#type_select_hockeyschools").removeProp("disabled", "disabled");
                  $("#sch_cat_hockeyschools").prop("checked", true);
                  $("#sch_cat_hockeyschools").prop("checked", "checked");
              }, function(ev) {
                  ev.stopPropagation();
                  $("#type_select_hockeyschools option:selected").removeAttr("selected");
                  $("#type_select_hockeyschools").prop("disabled", true);
                  $("#type_select_hockeyschools").prop("disabled", "disabled");
                  $("#sch_cat_hockeyschools").prop("checked", false);
                  $("#sch_cat_hockeyschools").removeProp("checked");
              });
  </code></pre>
  
  <p>Sample of corresponding checkbox HTML:</p>
  
  <pre><code>&lt;input class="catmark" type="checkbox" name="sch_categories[]" id="sch_cat_hockeyschools" value="1" /&gt;General Hockey Schools
  &lt;input class="catmark" type="checkbox" name="sch_categories[]" id="sch_cat_springhockey" value="2" /&gt;Spring Hockey
  </code></pre>
  
  <p>The problem is that the upon clicking the checkbox, the checkbox does not become ticked or checked; it immediately returns to an unchecked state, which I thought the <code>stopPropagation()</code> function would help with. Apparently not. The multi-lists get enabled and disabled as expected, but the checkbox doesn't get ticked.</p>
  
  <p>The result of this problem is that when the form is submitted, the array containing the selected categories is empty; thus, because at least one checked category is a required field in the form, the PHP script that processes the form throws one of my errors which tells me a required field was left blank.</p>
  
  <p>Any ideas on how to make sure that the checkbox actually gets checked, and by extension, POSTS actual data to the processing script?</p>
  
  <p>Thanks guys.</p>