on click event show modal code example
Example 1: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
Example 2: display modal without button click
$("#getCodeModal").modal("show");
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
$("#getCodeModal").modal("show");