JQuery

How to check all except disabled ?

How to check all except disabled ?, someone asked me to explain?

This input field with type checkbox, which are checked, and not disabled.
you can use an attribute property to check.

 

To check all except disabled

$('input:checkbox:not(:disabled)').attr('checked', 'checked');

To uncheck all except disabled

$('input:checkbox:not(:disabled)').removeAttr('checked');

Post your comments / questions