I'm facing an issue with my code where the dropdown menu is not displaying dropdown items. I need help fixing this problem, it would be greatly appreciated. Additionally, I also want to enable multiple selection of buttons and change the color of each selected button.
.list-group-horizontal .list-group-item {
display: inline-block;
}
.list-group-horizontal .list-group-item:focus {
display: inline-block;
color:#fff;
background-color: #41AADA !important;
}
.list-group-horizontal .list-group-item {
margin-bottom: 0;
margin-left:-4px;
margin-right: 0;
}
.list-group-horizontal .list-group-item:first-child {
border-top-right-radius:0;
border-bottom-left-radius:4px;
}
.list-group-horizontal .list-group-item:last-child {
border-top-right-radius:4px;
border-bottom-left-radius:0;
}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<div class="form-check list-inline list-group-horizontal" data-toggle="list-group-item">
<button type="checkbox" id="btnGroupDrop1" type="button" class="dropdown-toggle list-group-item" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2018
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item" href="#">2017</a>
<a class="dropdown-item" href="#">2016</a>
</div>
<button type="checkbox" class="form-check list-group-item">Quater 1</button>
<button type="checkbox" class="form-check list-group-item">Quater 2</button>
<button type="checkbox" class="form-check list-group-item">Quater 3</button>
<button type="checkbox" class="form-check list-group-item">Quater 4</button>
</div>