bootstrap detect modal close in html js code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');