Bootstrap loading effects in button

It is nice to show loading behavior to user and let user no something is happening which take some time and avoid touching UI. In bootstrap it is very simply task. I think it might help you $(this).button(‘loading’) shows loading text in button. we tell this to bootstrap by using data-loading-text=”Loading…”  When finishing our long runing logic we can call $(this).button(‘reset’); This will bring button to original state.