Closed hkan closed 5 years ago
document.querySelector returns either a null or the first of matching elements. It must be document.querySelectorAll to work as intended.
document.querySelector
null
document.querySelectorAll
document.querySelector
returns either anull
or the first of matching elements. It must bedocument.querySelectorAll
to work as intended.