Posted By

webDesign on 07/12/06


Tagged

show javascript hide


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

arcturus
meth
Hirmine
errortipo11


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  

Comments

RSS Icon Subscribe to comments
Posted By: arcturus on August 15, 2006

You need to login to post a comment.