how to manually toggle off a modal bootstrap code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');