Answers for "javascript get element by multiple class names"

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
3

javascript get element by multiple class names

document.getElementsByClassName('class1 class2')
Posted by: Guest on August-03-2020

Code answers related to "javascript get element by multiple class names"

Code answers related to "Javascript"

Browse Popular Code Answers by Language