In the above example, the loading method is used when we click on the button the text of the button will change as follows:

Single toggle:

Toggling is to change the state of the button. It makes the button look pressed. Bootstrap allows single toggling on a single button. This can be done by using the attribute data-toggle = “button” within button element. Consider the following example: