Correction erreur masquage durée amortissement
This commit is contained in:
parent
e6fb335e4c
commit
af24d6095e
1 changed files with 4 additions and 3 deletions
|
|
@ -12,9 +12,10 @@ function toggleInputs(idcb, idfields) {
|
|||
}
|
||||
}
|
||||
|
||||
function toggleVisibility(idcheck, fields) {
|
||||
const elem = document.getElementById(idcheck);
|
||||
fields.forEach(function (field) {
|
||||
function toggleVisibility(id_check, fields) {
|
||||
const elem = document.getElementById(id_check);
|
||||
fields.forEach(function (id_field) {
|
||||
const field = document.getElementById(id_field);
|
||||
if (elem.checked) {
|
||||
field.classList.remove('hidden');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue