Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

foreach document.getElementsByClassName

const elements = document.getElementsByClassName('myclass');
Array.from(elements).forEach(element => console.log(element));
 
PREVIOUS NEXT
Tagged: #foreach
ADD COMMENT
Topic
Name
3+7 =