DEV Community

Discussion on: How to Use Bootstrap Modals Without jQuery

Collapse
 
barisgc profile image
Baris • Edited

Firstly, thank you for this helpful post.
I guess, from B5 we can handle the situation without using jQuery and also without a lot of code lines like in your post.

Usage via js:

var myModal = new bootstrap.Modal(document.getElementById('exampleModal'))
myModal.show()
getbootstrap.com/docs/5.0/componen...

If I am right, you should indicate that in your post more clear because mind of newcomers/rookies like me, can be confused :)

Collapse
 
ara225 profile image
Anna Aitchison

This post was made before they removed jQuery themselves. I'll edit it