0
Oops, all right??? I’m having trouble doing the navbar Collapse, when I click on the icon does not appear the menu below.
Follow the code below:
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="">O Rei do Bojo</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="navbarMenu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarMenu">
<ul class="navbar-nav">
<li><a class="nav-item nav-link active" href="">Home</a></li>
<li><a class="nav-link nav-link" href="">Sobre</a></li>
<li><a class="nav-link nav-link" href="">Produtos</a></li>
<li><a class="nav-link nav-link" href="">Contato</a></li>
</ul>
</div>
</nav><!-- /navbar -->
</div>
And below follow the links to boostrap in Body and the js scripts.
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<script type="text/javascript" src="assets/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="assets/js/jquery/bootstrap.bundle.min.js"></script>
Thanks for the reply, but I tested it here and it did not work.
– RafaSEP
Are you sure? test here and it worked. Make sure your scripts are being loaded correctly, jquery and CSS and JS bootstrap,
– brunox99x
I just ran this script: if (window.jQuery == Undefined) Alert("No jQuery!"); and the return was No jquery.
– RafaSEP
There is your problem your links to the files are probably wrong. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> Link to Jquery online.
– brunox99x
Oops, I put the script making the request online here, and it didn’t work either. I’m already crazy about this kkkk .... The following: <script type="text/javascript" src="Assets/js/jquery/bootstrap.bundle.min.js"> </script> <script type="text/javascript" src="https://ajax.gooapigles.com/ajax/libs/jquery/3.3.1/jquery.min.js%22%3E%3E%3/script"></script script script>
– RafaSEP
I put an example working...
– brunox99x
Thanks for the patience and especially the dedication in helping me!!! It worked, vlw!!!!!
– RafaSEP