I have a button that when clicked opens a bootstrap modal. But when you click this button, the modal is not opening. Here is the code structure:
<html>
<head>
<script src="assets/bootstrap-3.3.7/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#MyModal">Open Modal</button>
<div id="MyModal" class="modal fade" 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>
</body>
</html>
The bootstrap version I imported into my project is the last. What can be