Return to Snippet

Revision: 1992
at December 10, 2006 13:39 by assbach


Initial Code
function toggle(obj) {
	var el = document.getElementById(obj);
	el.style.display = (el.style.display != 'none' ? 'none' : '' );
}

Initial URL

                                

Initial Description
toggle a div via JS/CSS style

Initial Title
toggle visibility (show/hide)

Initial Tags
css

Initial Language
JavaScript