Here is my code
const closeBtn = document.querySelector('.current button')
closeBtn.addEventListener('mouseover', e => {
closeBtn.parentElement.style.display='none'
})
<div class="slide current">
<div class="content">
<button class="closeBtn">×</button>
<h1>Orchidaceae</h1>
<p>
There are between 22,000 and 26,000 species in 880 genera. They make up between 6–11% of all seed
plants. Orchids can be found in almost every country in the world except for Antarctica.
</p>
</div>
</div>
Could you check what's wrong?
I'm trying to click on the click on the close button on the current slide to hide the content, but it's not showing any error and not any clue!!