Posted By

chiesalo on 02/10/10


Tagged

FAV


Versions (?)

Mostrar-ocultar elemento / Show-hide element


 / Published in: JavaScript
 

  1. function mostrarOcultar(nombre) {
  2. elemento = document.getElementById(nombre);
  3. elemento.style.display = elemento.style.display == "block" ? "none" : "block";
  4. }

Report this snippet  

You need to login to post a comment.