javascript dom modal not hiding code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');