bootstrap 3 event modal appears on screen code example
Example 1: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
Example 2: open bootstrap modal with javascript
$("#myModal").modal()
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
$("#myModal").modal()