skip to Main Content

Html – Attributes to array

What would be the best way to get the IMG SRC to an array such as: var images = [ 'img1.png', 'img2.png', img3.png' ]; <div class="cc"> <img class='content-image' src="./img1.png" alt=""> <img class='content-image' src="./img2.png" alt=""> <img class='content-image' src="./img3.png" alt=""> <img class='content-image'…

VIEW QUESTION
Back To Top
Search