Could someone assist me in getting this dropdown menu to function properly? I am trying to make it so that when the "Program" menu is clicked, a dropdown submenu will appear. I have inserted some code for it, but unfortunately it's not working. Just to clarify, I am using the bootstrap framework.
#sidebar-wrapper{
z-index: 1;
position: absolute;
width: 230px;
height: 100%;
overflow-y: hidden;
background: #2b6698;
opacity: 0.9;
}
#sidebar-wrapper h2{
color: white;
padding-left: 30px;
}
.sidebar-nav{
padding: 0;
list-style: none;
margin-top: 30px;
}
.sidebar-nav li{
text-indent: 13px;
line-height: 40px;
border-bottom:1px solid rgba(255,255,255,0.05);
}
.sidebar-nav li a::after{
font-family: FontAwesome;
content: '\f0d7';
float: right;
padding-right: 20px;
}
.sidebar-nav li a{
display: block;
text-decoration: none;
color: #FFF;
padding: 5px 0 5px 0px;
font-size:13px;
outline:none;
}
.sidebar-nav li a:hover{
background: #1F496C;
}
.sidebar-nav > .active{
background: #1F496C;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div id="sidebar-wrapper">
<h2> Dashboard </h2>
<ul class="sidebar-nav dropdown">
<li class="active"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user fa-lg move"></i>Program</a></li>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
<li><a href="#"><i class="fa fa-sticky-note fa-lg move"></i>Logic</a></li>
</ul>
</div>