Posted By

noname on 01/04/07


Tagged

toggle visibility


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

noname


toogle objects' visibility


 / Published in: PHP
 

  1. function toggle(obj) {
  2. var el = document.getElementById(obj);
  3. if ( el.style.display != 'none' ) {
  4. el.style.display = 'none';
  5. } else {
  6. el.style.display = '';
  7. }
  8. }

Report this snippet  

You need to login to post a comment.