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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:15:33+00:00 2026-06-16T05:15:33+00:00

Hi Im trying to create a dropdown button using bootstrap. But it just doesnt

  • 0

Hi Im trying to create a dropdown button using bootstrap. But it just doesnt seem to come out correctly ?

<div class="btn-group">
    <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
        Action
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
        <li><a href="#">Foo</a></li>
        <li><a href="#">Bar</a></li>
    </ul>
</div>

A jsfiddle is here http://jsfiddle.net/UrgP8/

Any ideas ?

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-16T05:15:34+00:00Added an answer on June 16, 2026 at 5:15 am

    You are loading a hefty amount of external resources into jsfiddle by pasting what is practically the full boostrap html source into the html view.

    Here is a much more bare-bones version
    that loads only three external files.

    http://jsfiddle.net/BqKNV/65/

    The base html is the same (SO wouldn’t let me post without putting in code…)

    <div class="dropdown btn-group">
        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
            Action
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu">
            <li><a href="#">Foo</a></li>
            <li><a href="#">Bar</a></li>
        </ul>
    </div>
    

    Note that jQuery is loaded via jsFiddle’s Framework panel,
    bootstrap css and js are loaded via the BootstrapCDN:

    //netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css
    //netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js


    What happens if you save this html as a page, and run it in a browser?

    <!DOCTYPE html>
        <html>
        <head>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          <title> - jsFiddle demo</title>
          <script type='text/javascript' src='http://code.jquery.com/jquery-1.8.2.js'></script>
            <script type='text/javascript' src="http://twitter.github.com/bootstrap/assets/js/bootstrap.min.js"></script>
            <link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
        </head>
        <body>
          <div class="dropdown btn-group">
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                Action
                <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li><a href="#">Foo</a></li>
                <li><a href="#">Bar</a></li>
            </ul>
          </div>
        </body>
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using twitter bootstrap. I'm trying to create a button with dropdown that should
I'm trying to create the illusion of a multiselect dropdown using a div that
I'm trying to create a dropdown kind of menu.So on clicking on a div
I am trying to create a Dynamic Dropdown menu class which contains a class
I am trying to create a custome color dropdown/split button in TinyMCE. The API
I'm trying to create a drop down button and its almost working except one
I'm trying to create a dropdown box that will render a label under certain
I'm trying to create a colour picker based on colours specified in a dropdown
I am trying to create a drop down list using asp.net mvc. Model: public
I am trying to create a dynamic UI using UpdatePanel of AJAX toolkit. Let

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.