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

后端 未结 7 1607
既然无缘
既然无缘 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

    In the documentation page, there is a file being loaded called application.js. http://twitter.github.com/bootstrap/assets/js/application.js

    // button state demo
    $('#fat-btn')
        .click(function () {
            var btn = $(this)
            btn.button('loading')
            setTimeout(function () {
                btn.button('reset')
            }, 3000)
        });
    

提交回复
热议问题