Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Cycle through elements with the same tag

const paras=document.querySelectorAll('p');
paras.forEach(para=>{
    console.log(para)});
 
PREVIOUS NEXT
Tagged: #Cycle #elements #tag
ADD COMMENT
Topic
Name
9+3 =