get integer of string in document.getelements by classname code example
Example 1: how to get element by class name javascript
document.getElementsByClassName("legend").style.display="none";
Example 2: javascript element by class
var elementsArray = document.getElementsByClassName("someclassname");