/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function mostrarOcultar(nombre) { elemento = document.getElementById(nombre); elemento.style.display = elemento.style.display == "block" ? "none" : "block"; }