open modal on button click bootstrap 4 code example
Example 1: open bootstrap modal with javascript
$("#myModal").modal()
Example 2: bootstrap 4 modal popup remote url
$('body').on('click', '[data-toggle="modal"]', function(){
$($(this).data("target")+' .modal-body').load($(this).data("remote"));
});