Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element by class

var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #element #class
ADD COMMENT
Topic
Name
4+3 =