jquery onclick load modal code example
Example: onload of modal jquery function
$("#myModal").on('shown.bs.modal', function () {
alert('The modal is fully shown.');
});
$("#myModal").on('shown.bs.modal', function () {
alert('The modal is fully shown.');
});