Quantcast
Channel: Discussions - T3 - Joomla Template Framework
Viewing all articles
Browse latest Browse all 3483

Bootstrap loading buttons not working

$
0
0
I have tried this jQuery of using Bootstrap 3 buttons to use as a loading button http://www.jqueryscript.net/loading/jQuery-Plugin-For-Built-In-Loading-Indicator-In-Buttons-Button-Loader.html but on the Javascript part, it's not working for some reason when I looked into Google Chrome, it said "Uncaught TypeError: Cannot read property 'click' of null"

here's my code:
$(document).ready(function () {

$('.has-spinner').click(function () {
var btn = $(this);
$(btn).buttonLoader('start');
setTimeout(function () {
$(btn).buttonLoader('stop');
}, 3000);
});
});
help???

Viewing all articles
Browse latest Browse all 3483

Trending Articles