Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

return all class innerhtml in javascript

// It will retrun all innerHTML value into console.log
var elts = document.getElementsByClassName('nice-name');
for (var i = 0; i < elts.length; ++i) {
    console.log(elts[i].innerHTML);
}
 
PREVIOUS NEXT
Tagged: #return #class #innerhtml #javascript
ADD COMMENT
Topic
Name
6+1 =