New answers tagged

2

I see that you have modelled your development upon this page: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_class However, that demo has a separation between the element with the click event and the element to be toggled. Your snippet has the popup element nested inside of the clickable element (there is a parent-child relationship). ...


Top 50 recent answers are included