How do I select all elements using same class name in javascript. I know i can do it using document.getElementsByClassName but I read somewhere that it’s not cross browser so if it is true what is the appropriate way to select elements depending on class name without jQuery or other library.
Thanks!
I found this code:
Here