Tira questo: $('#all').on('click', function(){ $(':checkbox').prop("checked",$(this).is(':checked')); }); http://jsfiddle.net/Dfzdh/