1
I need a force here for a problem that’s killing me.
I can’t get action on dropdown
in my navbar. I am using Bootstrap 4.0 and jQuery 3.2.1. Follow my codes:
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="publicidade.php">
<img src="img/home.png" width="30" height="30" class="d-inline-block align-top" alt="">
Inicio
</a>
<a class="dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
<a class="navbar-brand" href="relatorioChamados.php">
<img src="img/consultar.png" width="30" height="30" class="d-inline-block align-top" alt="">
Relatórios Chamados
</a>
<a class="navbar-brand" href="sair.php">
<img src="img/off.png" width="30" height="30" class="d-inline-block align-top" alt="">
Sair
</a>
</nav>
<script>
$(function()){
$('.dropdown-toggle').dropdown();
});
</script>
Puts guy who falters, thank you!!!
– Gabriel Barreto
@Gabrielbarreto if useful could accept as an answer
– novic