jQuery / Twitter Bootstrap data-loading-text button with delay

后端 未结 7 1589
既然无缘
既然无缘 2021-01-30 12:49

I\'m trying to get this exact example working on my website:

http://getbootstrap.com/2.3.2/javascript.html#buttons

However, simply including this HTML:



        
7条回答
  •  生来不讨喜
    2021-01-30 13:11

    Or just add this so it picks up the Twitter Bootstrap attribute.

    $('button[data-loading-text]').click(function () {
        $(this).button('loading');
    });
    

提交回复
热议问题