$('#myModal').modal('toggle'); $('#myModal').modal('show'); $('#myModal').modal('hide');
$('#delete-file-modal').on('show.bs.modal', function (event) { console.log(event.relatedTarget); });
<!-- Trigger/Open The Modal --> <button id="myBtn">Open Modal</button> <!-- The Modal --> <div id="myModal" class="modal"> <!-- Modal content --> <div class="modal-content"> <span class="close">×</span> <p>Some text in the Modal..</p> </div> </div>