bootstrap loading button

I think my issue is that I'm not sure where to put the JS to get this working. You need to use jquery (as shown) to get this to happen when the button in clicked. Button loading is mainly used in after button click when the user clicks. If youre pre-toggling a button, you must manually add the .active class and aria-pressed="true" to the

bootstrap loading button