bootstrap show modal on click code example
Example 1: programmatically show modal boostrap
$('#myModal').modal('show');
Example 2: bootstrap modal show event
$('#code').on('shown.bs.modal', function (e) {
// do something...
})
$('#myModal').modal('show');
$('#code').on('shown.bs.modal', function (e) {
// do something...
})