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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:01:19+00:00 2026-06-02T04:01:19+00:00

Here’s my problem, i’m trying to help a friend with a twitter bootstrap update

  • 0

Here’s my problem, i’m trying to help a friend with a twitter bootstrap update – specifically the nav bar.
When I click an item that has a drop down menu the menu does not open.

My problem is that the dropdown menu will not open. My investigation shows that bootstrap’s javascript is applying the open class to the wrong ul, and there fore the drop down never appears.

I have followed the instructions on http://twitter.github.com/bootstrap/javascript.html#dropdowns to set it all up. As far as I can see it is all setup correct.

I have exported a custom bootstrap which has the dropdown in it.

the page runs without error in the javascript console.

From my investigations, I have found that when you click “Print” (which has a dropdown), it will actually go to ul.level-0.nav and add the class “open”. This is a problem because it actually needs to apply that class to a.dropdown-menu.

See the structure here:

ul.level-0.nav
   li.dropdown
       a.dropdown-toggle
       ul.dropdown-menu

So to replicate the problem,

Step 1: http://jsfiddle.net/uGGgS/1/ in chrome

Step 2: Open up your chrome object inspector (or firebug if you are in firefox, or if you are in IE, then go download chrome and slap yourself for using IE)

Step 3: Drill down to li.haschild.dropdown a:contains('print')

Step 4: Click the Print menu item, and notice that the ul.level-0.nav now has the class “open”. Also notice no dropdown menu is shown 🙁

Step 5: add the class open to the ul.dropdown-toggle underneath print and notice the dropdown appears.

Anyone here know what I am doing wrong? I’ve done a w3c validate on the page and it had no errors that indicated the html page had unclosed tags.

Thanks.

  • 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-02T04:01:23+00:00Added an answer on June 2, 2026 at 4:01 am

    From my test i noticed that the older version of the bootstrap.min.js being included in your document is conflicting with your markup and updating it to the latest fixes the issue.

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

Sidebar

Related Questions

Here's what I'm trying to accomplish with this program: a recursive method that checks
Here's the flow that I am trying to achieve: 1) User uploads an audio
Here is another spoj problem that asks how to find the number of distinct
Here's a coding problem for those that like this kind of thing. Let's see
Here is what I am trying to do: Create a global gesture container that
Here is my SQL statement: UPDATE InboxItem SET OrderId = @0, Item = @1,
Here's my proposed (very simplified to illustrate the problem space) design for a C#
Here's the deal: I'm in the process of planning a mid-sized business application that
Here's the basic setup: I have a thin bar at the top of a
Here is my problem : I have a post controller with the action create.

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.