Answers for "javascript get element by 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
3

javascript get element by multiple class names

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

getelementbyclassname get multiple class

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

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language