I want to enable all checkboxes that are checked.
I am disabling all checkboxes that are not checked, and want to also enable all checkboxes that are checked. I am doing the following:
$("table#tableElectiveModuleId input[type='checkbox']:not(:checked)").prop("disabled", true);
$("table#tableElectiveModuleId input[type='checkbox']:checked").prop("disabled", false);
All checkboxes are now disabled, even though I am specifying that those that are checked, must be enabled.
Am I using the wrong syntax, or what am I doing wrong ?
Thanks for any help.
Aucun commentaire:
Enregistrer un commentaire