I would like to "close" a modal window. It's a wordpress template and it's ugly... I have a div :
<div class="modal">
<section style="position:relative;z-index:10;">
<div style="margin-bottom: -50px; margin-right: 50px; text-align: right;">
<img src="./wp-content/img.png" alt="Close">
</div>
<p><img src="./wp-content/img2.png" alt="test"></p>
</section>
</div>
And when the img with alt="Close"
is clicked, I would like to close or set the opacity of all the div.modal at 0. Is it possible with JS?