jquery.buttonloadingindicator
v1.0.1
Published
A small jQuery Plugin to indicate a loading state of a button
Downloads
12
Maintainers
Readme
jQuery ButtonloadingIndicator
A simple script that changes the button icon to the fontawesome Spinner and reverts it when done
How to install
Download the script
Import the script via
<script src="dist/jquery.buttonloadingindicator.js"></script>
Use it
How to use
Start loading
$("a").on("click", function(ev) {
ev.preventDefault();
$(this).startLoading();
// Do work
$(this).stopLoading();
});