Example of Bootstrap Button JavaScript Plugin

Control state

Single toggle

Checkbox

Radio