jquery load modal from another page 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.');
});