Return to Snippet

Revision: 9554
at November 11, 2008 14:18 by Tate


Initial Code
<script type="text/javascript"> 
	<!-- 
	function showMe (it, box) { 
	  var vis = (box.checked) ? "block" : "none"; 
	  document.getElementById(it).style.display = vis;
	} 
	//--> 
</script>

<input type="checkbox" name="modtype"  value="value1" onclick="showMe('div1', this)" />

Initial URL
http://www.dynamicdrive.com/forums/showthread.php?t=27245

Initial Description

                                

Initial Title
Show/hide div on checkbox

Initial Tags

                                

Initial Language
JavaScript