Hey there, I'm relatively new to JavaScript and I've been trying to figure out how to change the opacity of a div element. Unfortunately, my searches online haven't turned up anything helpful.
Here's what I have in terms of code so far:
JavaScript
function close_images(){
document.getElementsByClassName("modificar_imagen").style.opacity="0";
}
HTML
<div class="modificar_imagen">
<div class="close1" onclick="close_images()"><img src="img/icons/close.png" alt="close"></div>
<div class="contenido">
<div class="grid">
<div class="image_user"><img src="img/user1.jpg"></div>
<div class="image_user"><img src="img/user1.jpg"></div>
</div>
</div>
</div>