twitter/bootstrap — Issue #793: Button does not remove disabled on page refresh
Author: Powlie
Created: 2011-12-12 12:19:45+00:00
State: open

When the state of a button is changed there is an error if the page is refreshed without resetting the button.

This has happened when I have been in development an AJAX call has failed for whatever reason and the button state not reset. The page gets refreshed with the latest code changes but the button still has a 'disabled' attribute. A solution would be calling something like this when loading the page:

```javascript
$(document).ready('bootstrap_buttons', function() {
$('.btn').button('reset');
});
```

But would be better if the script did this automatically to have buttons in their correct state at page load.