I have a form with lets say 50 checkboxes. And i want to disable them on form load, i do it like this:
$(document).ready(function() {
$("#check").attr("disabled", "disabled");
});
but this only disables the first checkbox. All checkboxes got the id='check'.
Your checkboxes need to have unique ID, ID = unique identifier.
Instead use classes:
add class
checkto each checkbox: