Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Freddy Heppell
Freddy Heppell
9,753 Points

Dropdown Menu Doesn't Dropdown

I'm doing the Bootstrap course, and I've got to the point of adding the dropdown men. My entire nav code is:

<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand text-muted" href="">Ribbit</a>
        <div class="collapse navbar-collapse">

           <ul class="nav navbar-nav navbar-right">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#">About Ribbit</a></li>
            <li class="dropdown">
              <a  data-toggle"dropdown" data-target="#">Treehouse <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">About Treehouse</a></li>
                <li><a href="#">Video Library</a></li>
                <li><a href="#">Learning Adventures</a></li>
              <ul>
            </li>
          </ul>
        </div>
      </div>
    </div>

However, when I click the menu nothing happens. What is wrong?

1 Answer

Freddy Heppell
Freddy Heppell
9,753 Points

And I've figured it out...