bootstrap on modal shown code example
Example 1: programmatically show modal boostrap
$('#myModal').modal('show');
Example 2: bootstrap on hidden bs modal
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
})
Example 3: open bootstrap modal with javascript
$("#myModal").modal()
Example 4: bootstrap 4 hide modal via javascript
$('#myModal').modal('hide')