Bootstrap Jquery Loading State Auto Disables Button, How To Get Other States To Do The Same
$this.button('loading') auto adds disabled class to it while it's running, I want to create a second version of $this.button('loading'). So I can have 2 versions of text in a loadi
Solution 1:
According to the bootstrap docs, the second invocation of btn.button(...)
after the timeout will reset the button state:
$().button(string)
Resets button state - swaps text to any data defined text state.
Instead you just want to modify the text of the button in it's existing state, i.e:
setTimeout(function(){
btn.prop('value', 'still going..')
}, 1000);
Post a Comment for "Bootstrap Jquery Loading State Auto Disables Button, How To Get Other States To Do The Same"