Answers for "javascript get multiple elements by class"

61

javascript get element by class

var elementsArray = document.getElementsByClassName("someclassname");
Posted by: Guest on June-17-2019
2

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 multiple elements by class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language