wfareed wfareed - 2 years ago 61
CSS Question

Bootstrap dropdown-toggle is not working properly?

Will you please tell me what is wrong about this code !!!

<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Register</a></li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">My Profile <span class="caret"></span></a>

<ul class="dropdown-menu">
<li><a href="#">Messages</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Login</a></li>

<ul class="nav navbar-nav navbar-right">
<li><a href="#">Logout</a></li>

I am alos including this within my html file :

<link rel="stylesheet" href="">

<!-- Optional theme -->
<link rel="stylesheet" href="">

<!-- Latest compiled and minified JavaScript -->
<script src=""</script>

<script src=""></script>

When i click the dropdown menu it is not functioning at all , please i need help.

Answer Source

The jquery call should come first.

<script src=""></script>
<script src=""></script>

also, you forgot the close tag on the bootstrap call.

<script src=""</script>

should be:

<script src=""></script>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download