javascript get element by class

100

get element by class -

var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);

Comments

Submit
0 Comments