Return to Snippet

Revision: 13884
at May 10, 2009 08:33 by Thresh


Initial Code
<script type="text/javascript">
	function switchDisplay(x)
	{
		if(document.getElementById(x).style.display == "block")
		{
			document.getElementById(x).style.display="none";
			
		}else {
			document.getElementById(x).style.display="none";
			document.getElementById(x).style.display="block";
		}
	
	}

</script>

Initial URL

                                

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

Initial Title
Javascript  style display  ie problem

Initial Tags
javascript, ie, style

Initial Language
JavaScript