I have two classes (Column and Column2) that I want treated the differently in some ways but the same in others. I have styles set for each class individually, but for the parts I want to treat the same, I am trying to use a getElementsByClassName() to gather all of the items with either column or column2 as the class name. I cannot find a way to do that, though. I could probably just add a third class ("Columns"?) so I could select all of the elements with the "Columns" class. I was just wondering if there was an easier way other than adding a third class to a couple hundred divs.
I have tried things like:
var elements = document.getElementsByClassName("column", "column2");
All of the information I can find is for selecting an element with multiple classes, not multiple elements with different classes.