dismiss bootstrap 4 modal with button code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');