Javascript style display ie problem


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.