Petites améliorations et corrections
This commit is contained in:
parent
e31286f440
commit
d6fd5b4047
4 changed files with 24 additions and 11 deletions
|
|
@ -14,14 +14,13 @@ function toggleInputs(idcb, idfields) {
|
|||
|
||||
function toggleVisibility(idcheck, fields) {
|
||||
const elem = document.getElementById(idcheck);
|
||||
for (let id of fields) {
|
||||
const field = document.getElementById(id);
|
||||
fields.forEach(function (field) {
|
||||
if (elem.checked) {
|
||||
field.setAttribute('class', '');
|
||||
field.classList.remove('hidden');
|
||||
} else {
|
||||
field.setAttribute('class', 'hidden');
|
||||
field.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// fixer l'exercice des sélecteurs de compte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue