I have integrated a bootstrap modal in my webpage and I am looking to add a close icon over the image within the modal. Currently, I am using a button to close the modal.
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="hfc">
<img class="mySlides w3-animate-fading" src="assets/frontend/img/use/1.jpg"/>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(window).load(function(){
$('#myModal').modal('show');
});
</script>