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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:46:41+00:00 2026-05-28T18:46:41+00:00

Twitter Bootstrap http://twitter.github.com/bootstrap/javascript.html#dropdown has a dropdown.js library (at http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js )that will change the dropdown

  • 0

Twitter Bootstrap http://twitter.github.com/bootstrap/javascript.html#dropdown has a dropdown.js library (at http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js )that will change the “dropdown” class below to “dropdown open” which will make the dropdown menu open.

I included the js file on my local site but it’s not opening or toggling. I don’t know if I have to add an extra method to tell the jquery file what element to select, or, if I just give the element class “dropdown” the js should work without anything more.

I tried to figure it out using Firebug on the Twitter Bootstrap demo but I’m not that experienced with it. Please let me know if you know how to use this. Thank you.

I’m using it on a Rails application but that shouldn’t make a difference. It includes jquery automatically, and, as I said, I added dropdown.js. I’m just wondering if I have to do something more…

  <ul class="nav secondary-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle">Dropdown</a>
          <ul class="dropdown-menu">
            <li><a href="#">Secondary link</a></li>
            <li><a href="#">Something else here</a></li>
            <li class="divider"></li>
            <li><a href="#">Another link</a></li>
          </ul>
        </li>
      </ul>
  • 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-28T18:46:42+00:00Added an answer on May 28, 2026 at 6:46 pm

    I would inspect (use firebug) the demo given at the link you provided and make sure the html structure is accurate.

    If your html structure is correct, and all the appropriate classes/ids are there, then check whether you are actually initializing/loading the script correctly. You can do this using firebug or google chrome inspect by going to the resources tab and looking for your referenced js file. Or, go to the console and if there are any js load errors then you aren’t calling your files correctly.

    Have you included this line?

    $('#topbar').dropdown()
    

    Also, give yourself a sanity check: try checking whether jQuery works in the first place. Try using the firebug console to change div background color or something.

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

Sidebar

Related Questions

I want to use the input with error styling as appear here: http://twitter.github.com/bootstrap/ and
in twitter-compatible API what is setAPIRootURL value ? twitter=new Twitter(username,password); twitter.setAPIRootUrl(http://yamba.marakana.com/api); JTwitter library home
Twitter has a JavaScript plugin that makes little popovers (scroll over an element, and
$.getJSON('http://twitter.com/followers/ids.json?screen_name=' + query1 + '&callback=?', function (data) { console.log('JSON data string 1 is: '
I'm trying to use Twitter Bootstrap's dropdown menu in its top nav bar. You
I'm building a website using Twitter's Bootstrap.css. It comes with some helpful preset html/css
Twitter has a nice feature that allows you to preload status messages using the
In twitter bootstrap js tabs i have to add a class active to a
I'd like to take the output from http://colorschemedesigner.com/ and connect it to my Twitter
I have a link_to helper that I'd love to use Twitter's Bootstrap.js to provide

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.