trying to show/hide a div but something is not working

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-04-08T08:36:55Z Indexed on 2010/04/08 8:53 UTC
Read the original article Hit count: 198

Filed under:
|
|
|
window.addEvent('domready', function(){ 

 $('detail_block_table').addEvent('click', function(){

      if ($('detail_showDiv').getStyle('display') == 'none')
      {
          $('detail_showDiv').setStyle('display','block');
      }
      else
      {     
          $('detail_showDiv').setStyle('display','none');
      }

   });

});

This is the code, it looks fine but something prevents it from working.

Any ideas?

© Stack Overflow or respective owner

Related posts about mootools

Related posts about JavaScript