I have a situation where I am using v-for to display a lot of data in JSON as individual buttons. My goal is to change the background color of the button when it is clicked. I plan to use @click to bind a function to each button, and within that function, perform the following action:
theButtonDOM.style.backgroundColor = 'black';
How can I access the DOM element of the button generated by v-for? Alternatively, are there any other solutions to solve this issue of changing the background color?