Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7563509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:41:03+00:00 2026-05-30T13:41:03+00:00

I am playing with Bootstrap’s stateful buttons – specifically with Loading state , but

  • 0

I am playing with Bootstrap’s stateful buttons – specifically with Loading state, but still can’t find the right set up to get it working. I have a simple form based on AJAX, something like that:

<%=form_tag '/comments', :remote => true do %>
  <div><%=text_area_tag 'comment[text_comment]'%></div>
  <div><button class="btn btn-primary" data-loading-text="loading stuff..." >Post</button></div>
<%end%>

But still when I click on the POST button, so the form is sending, but the button effect (loading stuff…) is not displayed, like the example on Bootstrap’s page.

Could anyone gives me a tip on how to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T13:41:04+00:00Added an answer on May 30, 2026 at 1:41 pm

    You need to explicitly set that the button is in the loading state. Something like this:

    // Set up the buttons
    $(button).button();    
    $(button).click(function() {
        $(this).button('loading');
        // Then whatever you actually want to do i.e. submit form
        // After that has finished, reset the button state using
        // $(this).button('reset');
    }
    

    I’ve created a working JSFiddle example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Playing with new RTTI module, I couldn't find a way to set an event
Playing with the new(ish) url rewriting functionality for web forms, but I'm running into
I have a DomainClass with two variables and the user can only set one
been playing with this for a few hours and can't figure it out. jsFiddle
I am playing with Twitter Bootstrap dropdowns menu and trying to change behavior of
I've been playing with the Twitter Bootstrap test page in Dreamweaver and I absolutely
I'm still playing with Kohana, and found another stopper for me :-) I've created
Playing with a few tutorials on sockets but struggling to connect. My tomcat server
Playing with URLs, more specifically building them incrementally from other, discovered URLs. In doing
Im playing around with TryParse() But lets say the parsing fails, then returns false,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.