Return to Snippet

Revision: 375
at July 12, 2006 02:26 by webDesign


Initial Code
function mostrarOcultar(nombre) {
  elemento = document.getElementById(nombre);
  elemento.style.display = elemento.style.display  == "block" ? "none" : "block";
}

Initial URL

                                

Initial Description

                                

Initial Title
Mostrar-ocultar elemento / Show-hide element

Initial Tags
javascript

Initial Language
JavaScript