Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query selector element with 2 classes

var list = document.querySelectorAll(".class1.class2");
//Class1 AND Class2
var list = document.querySelectorAll(".class1,class2");
//Class1 OR Class2
 
PREVIOUS NEXT
Tagged: #query #selector #element #classes
ADD COMMENT
Topic
Name
4+3 =