Posted By

Thresh on 05/10/09


Tagged

javascript ie display style bug


Versions (?)

Javascript style display ie problem


 / Published in: JavaScript
 

you can use this function for ie javascript bug. İt is switchin display with javascript

  1. <script type="text/javascript">
  2. function switchDisplay(x)
  3. {
  4. if(document.getElementById(x).style.display == "block")
  5. {
  6. document.getElementById(x).style.display="none";
  7.  
  8. }else {
  9. document.getElementById(x).style.display="none";
  10. document.getElementById(x).style.display="block";
  11. }
  12.  
  13. }
  14.  
  15. </script>

Report this snippet  

You need to login to post a comment.