Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for htmlcollection javascript

var list = document.getElementsByClassName("class-name");
for (let item of list) {
    console.log(item.id);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #htmlcollection #javascript
ADD COMMENT
Topic
Name
4+7 =