on modal load run jquery 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.');
});