Posts by Wellington Rocha • 36 points
1 post
-
2
votes3
answers1262
viewsA: Hide a div and show another
You can hide all elements by looping by class name, after which only div by id. function mostrar(id) { if (document.getElementById(id).style.display !== "none") {…