Cannot disable Twitter bootstrap button with jQuery?
I am doing some AJAX when a button is clicked $btn.button('loading'); $.ajax({ type: 'PUT', url: 'event/', data: put_data, dataType: 'json', success: function(data){ if (data.redirect) { window.location = data.redirect; } else { $btn.button('reset'); if ($btn.is('#my-btn')) { console.log('disabling button'); $btn.prop('disabled', true); }…