Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140817

javascript: Hiding a div when another is shown [duplicate]

$
0
0

This question already has an answer here:

I have 2 blocks on my website, I want to display the last div that was active when the page was refreshed

I need your help because I have no knowledge

event 1 click to show second div

<div class="1">click and show other div</div>
<div class="2">this div hidden</div>

event 2 click to show first div

<div class="1">this div hidden</div>
<div class="2">click and show other div</div>

Viewing all articles
Browse latest Browse all 140817

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>