I have a div which contains an image. Under this div, I have another div which contains a video but its display is set to display: none. Here's the question. How to hide the first div when the image is clicked and show the second( the video's div) instead of it?
<div class="picture-section">
<img id="play-video" src="/images/Play.svg">
<img src="images/1.jpg">
</div>
<div class="video-section">
<video width="100%" autoplay loop>
<source src="/videos/v1.mp4" type="video/mp4">
</video>
</div>