jquery button click show modal code example
Example: jquery on modal show
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});