I need to change the style of multiple buttons with JavaScript.
I tried giving them all an ID and change it this way:
document.getElementById('button').style.color = "#ff0000";
But this of course only changed the first.
I could give them all different IDs but there are over 150 of them and that would get cumbersome.
How can I change them all?