How can I do this?
- If
Replacement of Registration
is clicked, disableHonorable Dismissal
andEntrance Exam
- If
Good Moral Certificate
is clicked, disableEntrace Exam
- If
Honorable Dismissal
, disableDiploma
,CUE Request
,CMI Request
,Entrance Exam
- If
Transcript of Record
is clicked, disableCUE Request
,CMI Request
,Entrance Exam
- If
Entrance Exam
, disable all
<input type="checkbox" name="ac_description[]" value="Replacement_of_Registration">
<input type="checkbox" name="ac_description[]" value="Good_Moral_Certificate">
<input type="checkbox" name="ac_description[]" value="Honorable_Dismissal " >
<input type="checkbox" name="ac_description[]" value="Transcript_of_Record">
<input type="checkbox" name="ac_description[]" value="Diploma">
<input type="checkbox" name="ac_description[]" value="CUE_Request">
<input type="checkbox" name="ac_description[]" value="CMI_Request">
<input type="checkbox" name="ac_description[]" value="Entrance_Exam">
<input type="checkbox" name="ac_description[]" value="School_fees-Medical/Dental_Laboratory">
<input type="checkbox" name="ac_description[]" value="School_fees-Transcript/Honorable">
<input type="checkbox" name="ac_description[]" value="School_fees-Library">
<input type="checkbox" name="ac_description[]" value="Affiliation_Fees">
You will put disabled at the end of the input tag for example:
The fourth checkbox will be disabled. You can manipulate it using jQuery. Using jQuery you could have an event happen when a checkbox is triggered it applies the disabled attribute to the other boxes. Take a look at this answer: Disable/enable an input with jQuery?
If you want to disable a group, assign a class to each group of inputs then use jQuery to change them. Take a look at this post as well: Catch checked change event of a checkbox
Here is an example of what you might want to try:
}) });