<button type="button" id="myButton" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off">
Loading state
</button>
<script>
$('#myButton').on('click', function () {
var $btn = $(this).button('loading');
// business logic...
$btn.button('reset');
})
</script>
참고 :
http://getbootstrap.com/javascript/#buttons
댓글 없음:
댓글 쓰기