Have a checkbox and want to enable disable many ddl according to its onchecked >functionality. I have atleast 14 checkboxes I need to accomplish this in.. Is >it possible to do this using jquery?
enter code here
");" Checked="false" />
enter code here
$(function enablecheck(chk,ddl) { $('[id$=chk]').on('click', function () { if ($(this).is(":checked")) {
ddl.prop("disabled", false);
} else {
ddl.prop("disabled", true);
}
})
});
Aucun commentaire:
Enregistrer un commentaire