1

Hello I am fairly new to HTML CSS and JS. And im trying to use the bootstrap dropdown menu and i have done some research and other people on here said to add this in the footer.

            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

and this as the header

            <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
        <link href="css/main.css" rel="stylesheet" type="text/css"/>

and im trying to do a drop down and when i click it does not drop.

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  <ul class="nav navbar-nav">
    <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
    <li><a href="#">Link</a></li>
    <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
      <ul class="dropdown-menu">
        <li><a href="#">Action</a></li>
        <li><a href="#">Another action</a></li>
        <li><a href="#">Something else here</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="#">Separated link</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="#">One more separated link</a></li>
      </ul>
    </li>
  </ul>
ThatPurpleGuy
  • 426
  • 7
  • 20
  • 2
    You need to load jquery too. _Before_ your load the Bootstrap js file. – Turnip Apr 10 '17 at 18:32
  • 1
    Thank you that fixed it I feel stupid now but you learn more everyday! ;) thx (am I supposed to do any thing when my question is answers like award someone or something or close it?) – ThatPurpleGuy Apr 10 '17 at 18:41
  • I've closed as a duplicate. Don't feel stupid. Similar questions come up often. – Turnip Apr 10 '17 at 18:43

0 Answers0