skip to Main Content

Html – whilst trying to make a language select for a web im making i get an error that reads [Cannot read properties of null (reading 'addEventListener')]

javascript code (the error code is placed at addEventListener) const translations = { en: { text1: "testing" }, no: { text1: "testing" }, gm: { text1: "testen" } } const languageSelectop = document.querySelector("LS"); problem being around here languageSelectop.addEventListener("change", (event) =>…

VIEW QUESTION
Back To Top
Search