DEV Community

loading...

Discussion on: Need Help About JavaScript Error Log

Collapse
salmandabbakuti profile image
Salman Dabbakuti • Edited

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🤔

Collapse
shahkartik03 profile image
shahkartik03

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.