I\'m trying to set get id of all elements in an HTMLCollectionOf. I wrote the following code:
HTMLCollectionOf
var list = document.getElementsByClassName(\"event
I had a problem using forEach in IE 11 and also Firefox 49
I have found a workaround like this
Array.prototype.slice.call(document.getElementsByClassName("events")).forEach(function (key) { console.log(key.id); }