1.0.1 • Published 5 years ago
jquery.buttonloadingindicator v1.0.1
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();
});