3 ms·
Unfortunately, document.getElementsByClassName isn't universally supported[0], so even if you wanted to do it that way, it still wouldn't be that easy. Never is
by krapp 9y ago
Unfortunately, document.getElementsByClassName isn't universally supported[0], so even if you wanted to do it that way, it still wouldn't be that easy. Never is.
[0]https://caniuse.com/#feat=getelementsbyclassname https://caniuse.com/#feat=getelementsbyclassname