Posted By

a1ias on 07/28/11


Tagged


Versions (?)

Show/Hide element using Javascript


 / Published in: JavaScript
 

  1. function showhide(e) {
  2. var el = document.getElementById(e);
  3. el.style.display = el.style.display == "block" ? "none" : "block";
  4. }

Report this snippet  

You need to login to post a comment.