We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Michael Harris
  2. General Discussion
  3. Monday, 03 August 2015
  4.  Subscribe via email
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???
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Please replace the code:

$(document).ready(function () {

to:
jQuery(document).ready(function ($) {


Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.