Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element by multiple class javascript

var list = document.querySelectorAll(".class1.class2");
//Class1 AND Class2
var list = document.querySelectorAll(".class1,class2");
//Class1 OR Class2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #multiple #class #javascript
ADD COMMENT
Topic
Name
2+3 =