java script modal code example
Example 1: open modal js
$('#modal-name').modal('show');
Example 2: jquery modal on show + target button
$('#delete-file-modal').on('show.bs.modal', function (event) {
console.log(event.relatedTarget);
});
$('#modal-name').modal('show');
$('#delete-file-modal').on('show.bs.modal', function (event) {
console.log(event.relatedTarget);
});