🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Button Loader is a jQuery plugin for html buttons that trigger a deferred call and display a loading indicator in the button itself.

Ladda-Button loading-spinner loading-indicator

Documentation

button-loader

A jquery plugin which add loading indicators into buttons

Instructions

You will need to include both the jquery.buttonLoader.js and buttonLoader.css along with bootstrap.css and font-awesome.css

HTML

The buttons or links that should have the loading indication must be given the class "has-spinner". Below is an example of a button and a link which have loading indication.

<button class="btn btn-primary my-btn has-spinner">Button01</button> <a class="btn btn-primary my-btn has-spinner">Button02</a>

Jquery

To start loading

$('.my-btn').buttonLoader('start');

To stop loading

$('.my-btn').buttonLoader('stop');

Example

http://jsfiddle.net/zcX4h/1154/


You May Also Like