Answers for "getelementbyclassname get multiple class"

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

getelementbyclassname get multiple class

document.querySelectorAll('.a,.b')
Posted by: Guest on January-03-2021

Code answers related to "getelementbyclassname get multiple class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language