title: Check checkboxes with JQuery in JSF context
body: <p>I just would like to check all my checkboxes with JQuery. These checkboxes are created with JSF.</p>
  
  <p>I tried :</p>
  
  <pre><code>$("input[type=checkbox]").each( 
          function() {              
             $(this).prop('checked', true);
  // OR
             $(this).attr('checked', true);
  // OR         
             $(this).attr('checked', 'checked');
            alert($(this).attr('id'));
              } 
          );
  </code></pre>
  
  <p>nothing works...</p>
  
  <p>Can JSF be the problem ? Value of these checkboxes are linked with some managed bean boolean value.</p>
  
  <p>Thanks for help.</p>
  
  <p>PS : my alert() function returns id of checkboxes properly and JQuery version is :</p>
  
  <blockquote>
    <p>jQuery JavaScript Library v1.8.1</p>
  </blockquote>