Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Liquid Web Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

8,361 questions

11,615 answers

573 users

How to create dropdown menu with divider and headers in Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <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.2.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">
  <h2>Bootstrap Dropdown menu with divider and headers</h2>
  <div class="dropdown">
    <button class="btn btn-primary dropdown-toggle" 
            type="button" data-toggle="dropdown">Dropdown menu
            <span class="caret"></span></button>
    <ul class="dropdown-menu">
        <li class="dropdown-header">header 1</li>
      <li><a href="#">PHP</a></li>
      <li><a href="#">C#</a></li>
      <li><a href="#">C++</a></li>
      <li class="divider"></li>
      <li class="dropdown-header">header 2</li>
      <li><a href="#">JavaScript</a></li>
    </ul>
  </div>
</div>

</body>
</html>

 




answered Jul 19, 2017 by avibootz
edited Jul 19, 2017 by avibootz
...