I have a question that I hope you can help me with. I have an HTML input tag with a button type that triggers a JavaScript onclick function. The functionality is working as expected, but now I want to enhance it by keeping the button in an active state after being clicked (highlighted) until it is clicked again.
Do you have any suggestions on how I can achieve this? I initially tried to maintain focus on the button, but it seems like having multiple button focuses isn't possible and could be considered a workaround rather than a proper solution.