Can anyone help me troubleshoot an issue with using modals in my HTML? I've been trying to implement them with anchor tags, but it's not working as expected. Here is the code I'm using:
<div class="logo">MAIN</div>
<ul>
<li>
<a href="#" class="navy-item">3</a>
<div class="navy-content">
<div class="navy-sub">
<ul>
<li>
<a data-toggle="modal" href="#myModal">3-1</a>
</li>
<li>
<a href="#">3-2</a>
</li>
</ul>
<span class="close-my">×</span>
<span class="close-my">═</span>
<span class="close-my">−</span>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
I am utilizing the Darkly Theme for Bootstrap elements, and everything else seems to be working smoothly except this particular issue. If you're interested, you can check out the theme here: