1$('#myModal').modal('toggle');
2$('#myModal').modal('show');
3$('#myModal').modal('hide');
1$('#delete-file-modal').on('show.bs.modal', function (event) {
2 console.log(event.relatedTarget);
3});
1<!-- AJAX response must be wrapped in the modal's root class. -->
2<div class="modal">
3 <p>Second AJAX Example!</p>
4</div>