jquery modal settings window 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');
});