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