close bootstrap modal with javascript
snippet in javascript

close bootstrap modal with javascript

user7926

$('#myModal').modal('hide');

bootstrap 4 hide modal via javascript

user8009

$('#myModal').modal('hide')