This example is for an older version of Bootstrap (v.4). A newer version is available for Bootstrap 5.

Find detailed documentation and more examples here: Go to Docs v5


Bootstrap modal events is a set of JS scripts that let you launch Bootstrap modals based on a action performed by a user.

"Hide.bs.modal" event

This event is fired just before the modal is hidden.

Launch Modal Danger

"Hidden.bs.modal" event

This event is fired after the modal is closed.

Launch Modal Warning