Inactive link in a bootstrap dropdown menu
mocoye
Posted messages
90
Status
Member
-
Zero -
Zero -
Hello,
I am currently developing a new site and for the first time with the help of bootstrap, however, I need a vertical dropdown menu that I have installed, but the links in the sub-menu are not working.
Here is the code in question:
Thank you in advance for your help,
Best regards,
Laetitia
Configuration: Windows / Firefox 61.0
I am currently developing a new site and for the first time with the help of bootstrap, however, I need a vertical dropdown menu that I have installed, but the links in the sub-menu are not working.
Here is the code in question:
<li class="dropdown">
<div class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a href="institutionnels.php"><i class="fas fa-angle-double-right"></i> partners</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="institutionnels.php">institutional</a>
<a class="dropdown-item" href="#">olympics</a>
<a class="dropdown-item" href="adherents.php">members</a>
<a class="dropdown-item" href="#">providers</a>
</div>
</div>
</li>
Thank you in advance for your help,
Best regards,
Laetitia
Configuration: Windows / Firefox 61.0
1 answer
-
Version of bootstrap?
Version of jQuery?
Without the complete code, it's hard to do something...
Here is an example with functional links
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Dropdown Example <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="institutionnels.php">HTML</a></li> <li><a href="adherents.php">CSS</a></li> <li><a href="prestataires.php">JavaScript</a></li> </ul> </div> </div> </body> </html>