How do I to make this code work with a better performance, please ?
Rules :
- If the
option[value='admin']is selected, check all the checkboxes. If not, uncheck them all. - If a checkbox is checked, change its value to
true, if not tofalse. - If
.gestionSupervision && .gestionSupervision2are checked, check all checkboxes and selectoption[value='admin']. If
.gestionSupervision && .gestionSupervision2are unchecked, selectoption[value='sei'].If
.gestionSupervisionis checked,.gestionSupervision2must be.- If
.gestionSupervisionis unchecked,.gestionSupervision2must be. - If
.gestionSupervision2is checked,.gestionSupervisionmust be. - If
.gestionSupervision2is checked,.gestionSupervisionmust be.
Please note the hidden checkbox.