Fork me on GitHub

Bootstrap modal plugin

view code

Bootstrap provides a specific (somehow limited) plugin to handle modals:

You can ask for a larger or smaller dialog specifing either 'modal-lg' or 'modal-sm' class.

The pluging fires some specific events during the modal life cycle:

Code sample

A basic modal box with Bootstrap