close the bootstrap modal on click of a link in modal code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');