Answers for "bootstrap dropdown within dropdown"

11

create a dropdown in html bootstrap

<div class="dropdown">
  <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown
  </button>
  <div class="dropdown-menu" aria-labelledby="dropdownMenu2">
    <button class="dropdown-item" type="button">Action</button>
    <button class="dropdown-item" type="button">Another action</button>
    <button class="dropdown-item" type="button">Something else here</button>
  </div>
</div>
Posted by: Guest on May-28-2020
1

bootstrap dropdown going off page

<!--add  dropdown-menu-right class to the dropdown-menu -->
<div class="dropdown-menu dropdown-menu-right">
Posted by: Guest on August-04-2020
0

bootstrap dropdown

<!-- Bootstrap 5 Dropdown -->
<div class="dropdown">
   <button
      class="btn btn-secondary dropdown-toggle"
      type="button"
      id="dropdownMenuButton1"
      data-bs-toggle="dropdown"
      aria-expanded="false"
   >
      Dropdown button
   </button>
   <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
      <li><a class="dropdown-item" href="#">Action</a></li>
      <li><a class="dropdown-item" href="#">Another action</a></li>
      <li><a class="dropdown-item" href="#">Something else here</a></li>
   </ul>
</div>
Posted by: Guest on March-02-2021
0

dropdown menu bootstrap

<div class="collapse navbar-collapse">
    <ul class="navbar-nav mr-auto">
      	<li class="nav-item">
      		<a class="nav-link" href="#">Clientes</a>
      	</li>
      	<li class="nav-item">
      		<a class="nav-link" href="#">Fornecedores</a>
      	</li>
     	<li class="nav-item dropdown">
          <a  class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">
            Veículos
          </a>
          <div class="dropdown-menu">
            <a class="dropdown-item" href="#">Carros</a>
            <a class="dropdown-item" href="#">Marcas</a>
            <a class="dropdown-item" href="#">Modelos</a>
          </div>
    	</li>
	</ul>
</div>
Posted by: Guest on October-08-2021

Code answers related to "bootstrap dropdown within dropdown"

Browse Popular Code Answers by Language