Let’s say that I have a number of buttons that represent toggles or selections users can make, in the same way, tickboxes work.
So for example, I’d ask users to select a number of options that apply to them.
I would like every “selected” button to change colour, while users would be able to “unselect” options by clicking on the button, which would prevent from its original colour.
I’d also want users to submit all of the information at some point, so every button will need its on value and state.
How do I begin doing this?