javascript get element by class

105

get element by class -

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

Comments

Submit
0 Comments