The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’ve tried the following but that didn’t work. No jQuery.
Turns out this WAS selecting it properly. Something else in my code was broken
You’ll have to use an index number, to indicate which one of the found elements with that class you want to target. This will select the first one:
I’ve never figured out how to select all classes with getElementsByClassName, so that’s why jQuery is so great.
Note: getElementsByClassName doesn’t have great browser support