Answers for "javascript select element with two classes"

1

javascript get element by multiple class

var list = document.getElementsByClassName("class1 class2");
var list = document.querySelectorAll(".class1.class2");
Posted by: Guest on February-18-2021
0

how to select element with 2 classes

.a.b {
     color: #666;
}
Posted by: Guest on June-16-2021
0

javascript select element with two classes

var element = document.querySelector(".class1.class2");
Posted by: Guest on July-01-2020

Code answers related to "javascript select element with two classes"

Code answers related to "Javascript"

Browse Popular Code Answers by Language