bootstrap on show modal code example
Example 1: programmatically show modal boostrap
$('#myModal').modal('show');
Example 2: bootstrap show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Example 3: how to show bootstrap modal
<script>
var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
myModal.show()
</script>
Example 4: bootstrap modal show event
$('#code').on('shown.bs.modal', function (e) {
// do something...
})