We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


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.