Jump to content

I believe I'm having problems with Jquery, but when I try to use the drop down menus they don't work! 

Here's my code:

<!DOCTYPE html><html lang="en-US"  manifest="cache.appcache"><head><!-- Latest compiled and minified CSS --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <!-- Optional theme --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> <!-- Latest compiled and minified JavaScript --><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script><link rel="stylesheet" type="text/css" href="mainstuff/bootstrap.css"><title>Hi Hi's Site - Home</title><link rel="stylesheet" type="text/css" href="mainstuff/bootstrap.css" /><link rel="stylesheet" type="text/css" href="styles/main.css" /><link rel="icon" type="image/png" href="images/favicon.png" /><!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->     <meta name="description" content="Hi Hi's Official Website" /><meta name="keywords" content="YouTube,Hi Hi,YouTuber,Funny" /><meta name="author" content="Hi Hi, Eric" /><meta charset="UTF-8" /><style>.active {background-color: #4CAF50;}</style>   </head>   <body><nav class="navbar navbar-default"> <div class="container-fluid"><!-- Brand and toggle get grouped for better mobile display --><div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span> </button> <a class="navbar-brand" href="https://www.youtube.com/channel/UC764mVIKLVjYDpUPVKDqt8g">Hi Hi YouTube!</a></div> <!-- Collect the nav links, forms, and other content for toggling --><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> <form class="navbar-form navbar-left" role="search"><div class="form-group"> <input type="text" class="form-control" placeholder="Search"></div><button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"><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> </ul></li> </ul></div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --></nav> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script src="mainstuff/bootstrap.js">    </body></html>
mainstuff is the folder that holds my main scripts, css, etc.
Link to comment
https://linustechtips.com/topic/526180-help-with-bootstrap/
Share on other sites

Link to post
Share on other sites

Why do you have scripts at the bottom of your <html>?

 

Those need to be moved into the <head> area, try that and see if it fixes it.

Specs:

 

Intel i7-4790K @ 4.7 GHz cooled by Corsair H80i | ASUS Maximus VII Formula |  G.Skill 8 GB (2 x 4GB) 2133 | EVGA 980 Superclocked (Fry) | 128GB Samsung 840 Pro OS Drive | WD Black HDD | 500GB Samsung 850 EVO | Corsair Vengeance K70 | Logitech G502 Proteus Core

 

 

lol @ AMD 8350

 

Link to comment
https://linustechtips.com/topic/526180-help-with-bootstrap/#findComment-6984056
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×