dismiss modal on click code example Example: open bootstrap modal with javascript $("#myModal").modal()