Hiding and Showing Elements with JavaScript
- by user1658756
I have an arrow on my site that I'd like if onclick, it hides one element, and shows another. Hitting it again, will hide the element that was shown and show the element that was hidden.
Is that possible to do without jQuery?
For example, I have
<div id="arrow"><a href="#">?</a></div>
<div id="ad"></div>
…