You should be able to toggle this one and get the selected state logged on each click
This is a normal button, clicks get logged, no selected attribute, on click the log will always show undefined
Group of mutually exclusive buttons, only one active at a time. It starts with the 2 selected and after 3 seconds none will. All changes get logged.
Mutually exclusive buttons, button C is preselected via existing markup.
This is a plain dropdown whose options have a selected attribute which is handled normally and does not get messed up with that of the toggle buttons or button groups. Initially the three label should show. The state of the selected option will be logged by showing an X in the position of the one selected.