diff --git a/docs/javascript.html b/docs/javascript.html index f9877dc028..76b5edb87e 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -811,6 +811,9 @@ $('#my-alert').bind('closed', function () {

Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.

<button class="btn" data-loading-text="loading stuff..." >...</button>
+

+ Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here. +

$().button('reset')

Resets button state - swaps text to original text.

$().button(string)