Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element with one or another class

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