mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
19 lines
476 B
JavaScript
19 lines
476 B
JavaScript
import { ShowHide } from 'ShowHide';
|
|
|
|
const addressForm = document.getElementById("addressForm");
|
|
const address = document.getElementById("address");
|
|
|
|
new ShowHide({
|
|
froms: [addressForm],
|
|
container: [address],
|
|
test: function(froms) {
|
|
for (let f of froms.values()) {
|
|
for (let input of f.querySelectorAll('input').values()) {
|
|
return input.checked;
|
|
}
|
|
}
|
|
return false;
|
|
},
|
|
event_name: 'change'
|
|
});
|