open modal js code example
Example 1: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
Example 2: open modal js
$('#modal-name').modal('show');
Example 3: open modal in jqwuery
$("#myModal").modal()