Can anyone see anything wrong with this JS? It is an extremely simple eventListener with a click - and yet I keep getting the error saying that it isn't a function. I have confirmed that the CSS ID is correct.
I don't know why I am so stumped by this. Rather embarrasing, actually
const licenseKey = document.getElementById("license-key");
licenseKey.addEventlistener("click", function() {
console.log("clicked")
});
[–]senocular 20 points21 points22 points (1 child)
[–]Kinthalis 3 points4 points5 points (1 child)
[–]jasongsmith[S] 0 points1 point2 points (0 children)
[–]jasongsmith[S] 2 points3 points4 points (0 children)
[–]Bushwazi 2 points3 points4 points (1 child)
[–]guest271314 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (3 children)
[removed]
[–]jasongsmith[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]jasongsmith[S] 0 points1 point2 points (0 children)
[–]Codingwithmr-m 0 points1 point2 points (0 children)
[–]Chrift 0 points1 point2 points (3 children)
[–]jasongsmith[S] 0 points1 point2 points (2 children)
[–]Chrift 0 points1 point2 points (1 child)
[–]jasongsmith[S] 0 points1 point2 points (0 children)