Hey there, I'm a newcomer to Javascript.
I've been practicing my Javascript skills and trying to replicate something similar to what was achieved in this example: Change Button color onClick
My goal is to have this functionality work for multiple "buttons" (inputs), so that when any button is clicked, only that specific button changes color.
I attempted to modify the example above to support multiple buttons, but unfortunately, clicking on any button simply changes the color of the first one.
If someone could provide an explanation or an example of how to make buttons behave independently, it would be incredibly helpful.