DEV Community 👩‍💻👨‍💻

Discussion on: Need Help About JavaScript Error Log

salmandabbakuti profile image
Salman Dabbakuti • Edited on

I think event listener isn't able to find an element with given Id. Make sure you put exact element Id as you defined in your html🤔

shahkartik03 profile image

If that would have been the case then err would come at line #5. So this is not the case. The condition is making display = none and so the err is coming at line #13.