开发者

How to stop the spin.js spinner with jQuery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜