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 && .gestionSupervision2
are checked, check all checkboxes and selectoption[value='admin']
. If
.gestionSupervision && .gestionSupervision2
are unchecked, selectoption[value='sei']
.If
.gestionSupervision
is checked,.gestionSupervision2
must be.- If
.gestionSupervision
is unchecked,.gestionSupervision2
must be. - If
.gestionSupervision2
is checked,.gestionSupervision
must be. - If
.gestionSupervision2
is checked,.gestionSupervision
must be.
Please note the hidden checkbox.