bootstrap modal window open javascript code example
Example: jquery modal on show + target button
$('#delete-file-modal').on('show.bs.modal', function (event) {
console.log(event.relatedTarget);
});
$('#delete-file-modal').on('show.bs.modal', function (event) {
console.log(event.relatedTarget);
});