开发者

How to stop the spin.js spinner with jQuery

开发者 https://www.devze.com 2023-03-29 09:01 出处:网络
just used the cool spin.js (http://fgnass.github.com/spin.js/) with jQuery. I\'m appending the spinner with something like this

just used the cool spin.js (http://fgnass.github.com/spin.js/) with jQuery.

I'm appending the spinner with something like this

$('#students-list td:nth-child(5)').live('ajax:开发者_StackOverflow社区before', function(){
  $(this).append().spin(spinOpts);
});

But can't stop it after an Ajax complete event. How to call stop() method on it ?

Thanks guys !


Are you using the jQuery plugin listed at the end of that page? If so do this:

$('#students-list td:nth-child(5)').spin(false);

or

$('#students-list td:nth-child(5)').data('spinner').stop();

To stop it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号