Edit

Stateful Buttons

In Bootstrap you can do more acticity with the buttons like controlling the states of buttons, make checkbox and radio inputs behaves like toggle buttons, and so on.  

Example of Code

<button type="button" class="btn btn-default" data-loading-text="Loading ...">Default</button>
<button type="button" class="btn btn-primary" data-loading-text="Loading...">Primary</button>
<button type="button" class="btn btn-info" data-loading-text="Loading...">Info</button>
<button type="button" class="btn btn-success" data-loading-text="Loading...">Success</button>
<button type="button" class="btn btn-warning" data-loading-text="Loading...">Warning</button>
<button type="button" class="btn btn-danger" data-loading-text="Loading...">Danger</button>
<button type="button" class="btn btn-link" data-loading-text="Loading...">Link</button>
<hr>
<p><strong>Note:</strong> Click on the buttons to see how loading button works.</p>

Output


Note: Click on the buttons to see how loading button works.