how to hide model in javascript code example Example: close bootstrap modal with javascript $('#myModal').modal('hide');