bootstrap modal javascript trigger browser compatibility code example
Example 1: bootstrap on hidden bs modal
$('#myModal').on('hidden.bs.modal', function (e) {
// do something...
})
Example 2: html data-target modal
$('#myModal').modal('show')