Bootstrap Button Loading Text

Oct 1, 2014

1 min read

Bootstrap的Button上,加上data-loading-text的屬性,可以很簡單地做到clickonce的功能 透過JQuery來設定button的狀態 btn.button(“loading”)會顯示data-loading-text設定的文字,並且把button設為disabled btn.button(“reset”)會恢復button的狀態

相關資料 [spin.js 套件](http://blog.developer.idv.tw/2014/10/spinjs.html) [http://blog.developer.idv.tw/2014/10/spinjs.html](http://blog.developer.idv.tw/2014/10/spinjs.html)

ladda-bootstrap 套件 http://blog.developer.idv.tw/2014/10/ladda-bootstrap.html

Sharing is caring!