bootstrap5 modal javascript code example Example 1: bootstrap modal Launch demo modal Modal title × ... Example 2: modal in bootstrap 4 $('#myModal').modal('toggle')