I am in the midst of the Bootstrap tutorial on W3Schools.com and found this example for a split button with a dropdown.
<div class="container"> <h2>Split Buttons</h2> <div class="btn-group"> <button type="button" class="btn btn-primary">Sony</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Tablet</a></li> <li><a href="#">Smartphone</a></li> </ul> </div> </div>
It looks like this when activated:
The issue is that when I use the inclusion that came with the default uibuilder example which follows, it doesn't work.
I was however able to get it to work by replacing that with this which I pulled from w3schools example:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
Does anyone have any insight into why this doesn't work using the default? Should I just plan to use the cdn sourced inclusion going forward?