DEV Community

loading...

Discussion on: Need Help About JavaScript Error Log

Collapse
blindfish3 profile image
Ben Calder

The fact that an element is not displayed wouldn't stop you from adding an event listener: the element itselt still exists in the DOM. The most likely answer is that for some reason the element doesn't actually exist.