This question already has an answer here:
- Hiding a div when another is shown 2 answers
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>