The documentation says a button can be formatted to toggle on or off, but the example given is merely
Vote &
The following simple code is working fine for two different toggle buttons with onClick event. Thank you Mukesh for inspiring me.
Page Title Vote Vote