Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Toggle Display

DZone's Guide to

Toggle Display

·
Free Resource
// Just use this to toggle the display of your tag between "none" and "block"


function ToggleDisplay(source) {
	obj = getElementById(source);
	obj.style.display = (obj.style.display=='block')?obj.style.display='none':obj.style.display='block';
}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}