Please refer below Sample
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
.dropdown-submenu
{
position: relative;
}
.dropdown-submenu > .dropdown-menu
{
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
.dropdown-submenu > a:after
{
display: block;
content: " ";
float: right;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 5px 0 5px 5px;
border-left-color: #cccccc;
margin-top: 5px;
margin-right: -10px;
}
.dropdown-submenu:hover > a:after
{
border-left-color: #555;
}
.dropdown-submenu.pull-left
{
float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu
{
left: -100%;
margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}
</style>
<title></title>
</head>
<body>
<link rel="stylesheet" href='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css'
media="screen" />
<script type="text/javascript" src='http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js'></script>
<script type="text/javascript" src='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js'></script>
<script type="text/javascript">
$(document).ready(function () {
$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function (event) {
event.preventDefault();
event.stopPropagation();
$(this).parent().siblings().removeClass('open');
$(this).parent().toggleClass('open');
});
});
</script>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a> </li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Hospital<b
class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
Consultants</a>
<ul class="dropdown-menu">
<li><a href="#">Adult cardiac surgery</a> </li>
<li><a href="#">Bariatric surgery</a> </li>
<li><a href="#">Colorectal surgery</a> </li>
<li><a href="#">Endocrine and thyroid surgery</a> </li>
<li><a href="#">Head and neck cancer surgery</a> </li>
<li><a href="#">Interventional cardiology</a> </li>
<li><a href="#">Lung Cancer</a> </li>
<li><a href="#">Neurosurgery</a> </li>
<li><a href="#">Orthopaedic surgery</a> </li>
<li><a href="#">Upper gastro-intestinal surgery</a> </li>
<li><a href="#">Urological surgery</a> </li>
<li><a href="#">Vascular surgery</a> </li>
</ul>
</li>
<li><a href="#">Another action</a> </li>
<li><a href="#">Something else here</a> </li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a> </li>
<li><a href="#">One more separated link</a> </li>
</ul>
</li>
</ul>
</div>
</body>
</html>
Demo