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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:03:21+00:00 2026-06-17T22:03:21+00:00

I have a Twitter Bootstrap (v2.2.1) collapsable navbar and dropdown buttons. They work all

  • 0

I have a Twitter Bootstrap (v2.2.1) collapsable navbar and dropdown buttons. They work all chirpy and happy in my desktop browser and also if I resize down my desktop browser window down to mobile size they work happily.

However on a mobile, the dropdowns will open up when you click on the dropdown but clicking on any of the links within the dropdown just causes the dropdown to close without following the link.

This seems similar to this other SO question, but the solution there was to move the data-toggle="dropdown" to the place I have them already.

Here’s the html on the page for the dropdown buttons:

<html>
<head>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />
</head>
<body>
<div class="btn-group">
    <a class="btn btn-primary" href="link1.php">
        Dropdown button
    </a>
    <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
        <li class="nav-header">Recent</li>
        <li><a href="http://google.com">Google</a></li>
        <li><a href="http://bing.com">Bing</a></li>
    </ul>
</div>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap.js"></script>
<script type="text/javascript">
    /**
     * Twitter Bootstrap JQuery
     */
    //!function ($) {
        $(function () {
            $('.dropdown-toggle').dropdown();
        });
    //}
</script>
</body>
</html>

I tested it on an android mobile in the Mobile Opera, Mobile Firefox and default android browser.

enter image description here

  • 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-17T22:03:23+00:00Added an answer on June 17, 2026 at 10:03 pm

    I’ve tracked it down to a bug in Bootstrap 2.2.1 the changelog for 2.2.2 states:

    Dropdowns: Temporary fix added for dropdowns on mobile to prevent them from closing early.

    If I swapped the bootstrap.js on my site from v2.2.1 to v2.2.2 then the buttons start working.

    So now, if I view this code on jsFiddle using the latest v2.2.2 Bootstrap then it works.

    <html>
    <head>
    <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />
    </head>
    <body>
    <div class="container">
    <div class="btn-group">
        <a class="btn btn-primary" href="link1.php">
            Dropdown button
        </a>
        <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown">
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu">
            <li class="nav-header">Recent</li>
            <li><a href="http://google.com">Google</a></li>
            <li><a href="http://bing.com">Bing</a></li>
        </ul>
    </div>
    </div>
    <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
    <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap.js"></script>
    <script type="text/javascript">
            $(function () {
                $('.dropdown-toggle').dropdown();
            });
    </script>   
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get Twitter Bootstrap btn-group with dropdown to work for
I have a question with Twitter Bootstrap, I'm using the Dropdown plugin and I'm
I am using twitter bootstrap and have a fixed nav bar. The navbar has
I have a site written using Twitter Bootstrap. I have a group of buttons
I have this line of CSS from the Twitter Bootstrap, .icon-white,.nav-pills>.active>a>[class^=icon-],.nav-pills>.active>a>[class*= icon-],.nav-list>.active>a>[class^=icon-],.nav-list>.active>a>[class*= icon-],.navbar-inverse .nav>.active>a>[class^=icon-],.navbar-inverse
I have a twitter bootstrap dropdown inside a div with the plugin jOrgChart. The
I have this bootstrap twitter dropdown menu. I replaced the click event with hover
I have experienced to customize the twitter bootstrap navbar color successfully.. Now I want
I'm using Twitter Bootstrap and some custom css (found here ) to have dropdown
I have this twitter bootstrap dropdown menu that is hidden inside a parent div

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.