How do you open a modal in Bootstrap?

<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal">Open</button>
const modal = new bootstrap.Modal(document.getElementById('myModal'));
modal.show();

See Modal.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.