jquery is modal pop up visible 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');
});