In this scenario, I am looking to dynamically change the image in a button dropdown when it is clicked. The goal is for the dropdown image to swap and replace with the actual one upon clicking. For reference, here's the fiddle: https://jsfiddle.net/320cxwo1/
<div class="btn-toolbar fixed-bottom" style="justify-content: center; display: flex;" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" style="cursor:pointer" class="img-border"
width="37px" height="37px">
</button>
<button type="button" class="btn btn-secondary">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" class="img-border" style="cursor:pointer"
width="37px" height="37px">
</button>
<button type="button" class="btn btn-secondary">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" class="img-border" style="cursor:pointer"
width="37px" height="37px">
</button>
<button type="button" class="btn btn-secondary">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" class="img-border" style="cursor:pointer"
width="37px" height="37px">
</button>
</div>
<div class="btn-group" role="group" aria-label="Third group">
<button type="button" class="btn btn-secondary">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" class="img-border" style="cursor:pointer"
width="37px" height="37px">
</button>
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
<img src="https://image.flaticon.com/icons/svg/1391/1391667.svg" class="img-border" style="cursor:pointer"
width="37px" height="37px">
<ul class="dropdown-menu">
<li><a href="#"> <img src="https://image.flaticon.com/icons/svg/1391/1391669.svg" class="img-border"
style="cursor:pointer" width="37px" height="37px"></a></li>
<li><a href="#"> <img src="https://image.flaticon.com/icons/svg/1391/1391668.svg" class="img-border"
style="cursor:pointer" width="37px" height="37px"></a></li>
<li><a href="#"> <img src="https://image.flaticon.com/icons/svg/1391/1391661.svg" class="img-border"
style="cursor:pointer" width="37px" height="37px"></a></li>
</ul>
</button>
</div>
</div>
.btn-toolbar{
text-align:center;
}
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
background-color: #db9c31;
border-color: #db9c31;
color:#db9c31;
}