-2

let img = document.getElementsByClassName(".background-img")

I want to store all img tag whose class is (".background-image) to an array in javascript. Please anyone tell me, I'm stuck here.

0 Answers0