I would like that when one element is visible, another is not seen.
In my case I would like that when you see the pop up, the red arrow is hidden. I tried to insert this js, but I don't understand where I am wrong:
function pop() {
if (document.getElementsByClassName("spu-bg").style.display == "block") {
document.getElementsByClassName("opn").style.display = "none";
}
}
can you help me?