Posts by user87347 • 21 points
1 post
-
2
votes0
answers12
viewsQ: Document.querySelectorAll in a looping
var linksMenu = document.querySelectorAll(".links-menu"); for (var i = 0; i<linksMenu.length; i++) { linksMenu[i].addEventListener("click",function() { console.log(linksMenu[i]); }); } I cannot…