“dropdown” Kode Jawaban

dropdown di HTML

<select>
  <option value="actual value 1">Display Text 1</option>
  <option value="actual value 2">Display Text 2</option>
  <option value="actual value 3">Display Text 3</option>
</select>
RohBot

Bootstrap dropdown

<div class="dropdown show">
  <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown link
  </a>

  <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
    <a class="dropdown-item" href="#">Action</a>
    <a class="dropdown-item" href="#">Another action</a>
    <a class="dropdown-item" href="#">Something else here</a>
  </div>
</div>

Drop down

<header>  
<div id="top">  
  <nav id="topmenu">  
    <ul>  
     <li><a href="">Home</a></li>  
     <li><a href="">About</a></li>  
     <li><a href="">Portfolio<span class="arrow">More Link</span></a>  
        <ul class="sublist">  
           <li><a href="#">Sub link</a></li>  
           <li><a href="#">Sub link</a></li>  
           <li><a href="#">Sub link<span class="arrow-right">More Link</span></a>  
        <ul class="subsublist">  
            <li><a href="#">Sub Sub link</a></li>  
            <li><a href="#">Sub Sub link</a></li>  
            <li><a href="#">Sub Sub link</a></li>  
       </ul>  
    </li>  
    </ul>  
    </li>
    <!-- OTHER LINKS SECTION -->  
    </ul>  
</nav>  
</div>  
</header>
Shihabur Rahman

dropdown

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fontenele/[email protected]/dist/css/bootstrap-navbar-dropdowns.min.css">
    <script src="https://cdn.jsdelivr.net/gh/fontenele/[email protected]/dist/js/bootstrap-navbar-dropdowns.min.js"></script>

    <script>
        $('.navbar').navbarDropdown({theme: 'bs4', trigger: 'mouseover'});
        // @TODO add options
    </script>

    
Jealous Jackal

Jawaban yang mirip dengan “dropdown”

Pertanyaan yang mirip dengan “dropdown”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya