I am trying to get multiple elements using an array. I'm bad at describing, so I'll try and show.
var modal = document.querySelectorAll(".myModal")[0]; // <-- gets the first element in an array
var modal = document.querySelectorAll(".myModal")[1]; // <-- gets the second element in an array; doesn't work
Any help is appreciated. Thank you.