Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #queryselectorall #javascript #images #list
ADD COMMENT
Topic
Name
9+1 =