Return to Snippet

Revision: 23648
at February 10, 2010 13:42 by chiesalo


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

                                

Initial Language
JavaScript