How TO - Toggle Hide and Show
Toggle between hiding and showing an element with JavaScript.
Click the button!
Toggle (Hide/Show) an Element
Step 1) Add HTML:
Example
<button onclick="myFunction()">Click Me</button>
<div id="myDIV">
This is my DIV element.
</div>
<div id="myDIV">
This is my DIV element.
</div>

