Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript select all divs with class

let divs = document.querySelectorAll('.className');
OR
let divs = document.getElementsByClassName('className');
 
PREVIOUS NEXT
Tagged: #javascript #select #divs #class
ADD COMMENT
Topic
Name
7+6 =