Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. I check, compile and run every program. Contact me at: aviboots(AT)netvision.net.il
Hostgator 1 Penny

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

Distribute your Resume to 500+ Job Boards & Recruiters

7,142 questions

10,103 answers

573 users

How to create dropdown menu with divider and headers in Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet"
  <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>
<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>



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