Posted By

melomano on 11/10/11


Tagged


Versions (?)

Toggle Show/Hide


 / Published in: JavaScript
 

  1. function toggleShowHide(id) {
  2. var e = document.getElementById(id);
  3. if (e.style.display === "block") {
  4. e.style.display = "none";
  5. } else {
  6. e.style.display = "block";
  7. }
  8. }

Report this snippet  

You need to login to post a comment.