Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to make div visible and invisible in javascript

elem.style.display = 'none'; // hide
elem.style.display = 'block'; // show - use this for block elements (div, p)
elem.style.display = 'inline'; // show - use this for inline elements (span, a)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #div #visible #invisible #javascript
ADD COMMENT
Topic
Name
7+2 =