Answers for "queryselectorall javascript images in list"

0

queryselectorall javascript images in list

var elem = document.getElementsByClassName("flex-figure");

for (var i = 0; i <= elem.length; i++) {
    var imgTag = elem[i].getElementsByTagName('img')[0];
    var srcLink = imgTag.src;
    console.log(srcLink);
}
Posted by: Guest on June-13-2021

Code answers related to "queryselectorall javascript images in list"

Code answers related to "Javascript"

Browse Popular Code Answers by Language