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 8261471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:25:15+00:00 2026-06-08T03:25:15+00:00

With twitters Bootstrap I’ve created a button group with radiobox behaviour to let the

  • 0

With twitters Bootstrap I’ve created a button group with radiobox behaviour to let the user choose between the different states. This works out of the box as supposed.

I arranged a jsFiddle with the example here: http://jsfiddle.net/jpxWj/

What I tried (and want) is that the pressed state can be removed when I click the active button second time.

I tried with jQuerys removeClass() to remove the active class from the btn classes but it won’t work. (I also tried removing with .on() but this just keeps the active always hidden/removed)

  • 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-06-08T03:25:17+00:00Added an answer on June 8, 2026 at 3:25 am

    Here you go, quite an unknown event phenomenon, in my opinion. You can read more about it here.

    Edit:

    To ellaborate, the reason why a simple .removeClass doesn’t work, is because there are multiple listeners, listening to the same event. So when the click event is fired, a normal .removeClass would remove the class, but then the Twitter Bootstrap handler would add it again! To prevent any other handlers from being executed after yours, you can do e.stopPropagation. However, this does not stop the handlers attached to the same element as yours, it only stops the ones further up the tree. To completely make sure no other handlers are executed after yours, you can use event.stopImmediatePropagation().

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

Sidebar

Related Questions

I am using Toggable Tabs from Twitters Bootstrap The problem I have, Even you
For my Java project which uses Maven I have added Twitters Bootstrap lately to
In twitter bootstrap, I was looking for a way to allow a button to
I'm currently using popovers with Twitter Bootstrap, initiated like this: $('.popup-marker').popover({ html: true, trigger:
Version 2 of Twitters Bootstrap UI framework was released today. While I find it
I'm using twitter bootstrap. It has collapse module. I'm using it like this. <a
For example, www.breakingnews.com is using Twitter Bootstrap, which does a great job at this
I have this (using the Twitter bootstrap css sheet): <!DOCTYPE html> <html lang=en> <head>
Within Twitter Bootstrap there is a selection of buttons that one can choose from
Twitter Bootstrap has a form control that would glow on the borders when in

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.