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