Javascript newb here.
I am trying to practice Javascript, and want to recreate something along the lines of what was done in this example: Change Button color onClick
However, I want this action to be applied to multiple "buttons" (inputs), so that anytime an individual button is clicked, that button and that button alone changes color.
I recreated the example above in such a way that I thought would accommodate multiple buttons, but clicking on any of them just changes the color of the first button.
It would be greatly appreciated if someone could explain/give an example of some buttons behaving independently.