[Solved] No unchecking for checkboxes whose ids are in the list [closed]

[ad_1]

You can simply do:

for (let id of ["id1", "id2", "id667"]) {
  $('#' + id).prop('disabled', true);
}

We are just disabling the given checkboxes here to prevent from being clicked or changed again.

Note: for…in should not be used to iterate over an Array where the index order is important.

[ad_2]

solved No unchecking for checkboxes whose ids are in the list [closed]