title: jQuery checkbox event not firing?
body: <p>I have a page with checkboxes, one of which is a select all button.  So when the user clicks select all, it checks all the other boxes, and when another box is clicked, it unchecks select all. Here is the code.</p>
  
  <pre><code>          $(document).ready(function(event){   
                   //alert('wtf');
              $('#mailSubscribeAll').click(function(event){
                   //alert('wtf');
                  $('.mailingCheckbox').attr('checked','checked');
              });             
  
              $('.mailingCheckbox').bind('click',function(event){
                  //alert('wtf');
                  $('#mailSubscribeAll').removeAttr('checked');
              });
  
          });
  </code></pre>
  
  <p>So my page is loading jQuery fine, the first alert triggers.  None of the click events give the alerts.  I have double-checked my HTML is correct.</p>
  
  <p>So am I using the wrong event for jQuery, or is there a possible conflict on my page with other javascript that isn't jQuery?</p>
  
  <p>HTML snippet:</p>
  
  <pre><code>    &lt;tr&gt;
      &lt;td class="CBT3" colspan="3" height="29"&gt;
          &lt;input type="checkbox" class="mailingCheckbox" id="mailNewsAlerts"    value="1" {if $smarty.session.profile.mailNewsAlerts}checked{/if} onclick="subscribeMarkProfile()"&gt;
          &lt;label for="mailNewsAlerts"&gt;&lt;b&gt;News Alerts&lt;/b&gt; - &lt;cite&gt;The latest breaking news from XXXXXXX&lt;/cite&gt;&lt;/label&gt;
      &lt;/td&gt;
  &lt;/tr&gt;    
  &lt;tr&gt;
      &lt;td class="CBT3" colspan="3" height="29"&gt;
          &lt;input type="checkbox" id="mailSubscribeAll"    value="1" {if $smarty.session.profile.mailSubscribeAll}checked{/if} &gt;
          &lt;label for="mailSubscribeAll"&gt;&lt;b&gt;Subscribe me to all XXXXX newsletters!&lt;/b&gt; &lt;/label&gt;
      &lt;/td&gt;
  &lt;/tr&gt;    
  </code></pre>
  
  <p>I'm going to also add the part of the page with the checkboxes is not visible when the page loads, but it is there in the HTML.  I show the area after a button is clicked, but when the page loads, at first these checkboxes is invisible.</p>