How to hide two divs after true if condition?
if (Auth.getId() > 0) {
document.getElementById('Div1').style.display = 'none';
document.getElementById('Div2').style.display = 'none';
} else {
document.getElementById('Div3').style.display = 'none';
}
It returns div2 and div3, but it should return only div3.
Aucun commentaire:
Enregistrer un commentaire