Answers for "how to make toggle button in bootstrap"

2

bootstrap buttons Toggle states

Add data-toggle="button" to toggle a button’s active state. If you’re 
pre-toggling a button, you must manually add the .active class and
aria-pressed="true" to the <button>.

<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false">
  Single toggle
</button>
Posted by: Guest on October-23-2020

Code answers related to "how to make toggle button in bootstrap"

Browse Popular Code Answers by Language