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

 
    