Check all except disable
$('input:checkbox:not(:disabled)').attr('checked', 'checked');
Uncheck all except disable
$('input:checkbox:not(:disabled)').removeAttr('checked');
refer below link for more details http://www.infinetsoft.com/Post/How-to-check-all-except-disabled/18#.V00SYfl97IU