1.0.1 • Published 5 years ago

jquery.buttonloadingindicator v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

jQuery ButtonloadingIndicator

A simple script that changes the button icon to the fontawesome Spinner and reverts it when done

How to install

  1. Download the script
  2. Import the script via

    <script src="dist/jquery.buttonloadingindicator.js"></script>
  3. Use it

How to use

Start loading

$("a").on("click", function(ev) {
  ev.preventDefault();
  $(this).startLoading();
  // Do work
  $(this).stopLoading();
});