hide modal bootstrap 4 on click code example
Example 1: jquery close bootstrap model
$('#modal').modal('hide');
Example 2: hide bootstrap modal jquery
$(document).ready(function(){
$(".btn").click(function(){
$("#myModal").modal('hide');
});
});