bootstrap alert with button code example

Example 1: bootstrap alert








Example 2: bootstrap Alerts Additional content Dismissing



Enable dismissal of an alert via JavaScript:

$('.alert').alert()
$().alert('close')
$().alert()
$().alert('dispose')

Events

close.bs.alert
closed.bs.alert

Example 3: bootstrap Alerts Additional content

Alerts can also contain additional HTML elements like headings, paragraphs 
and dividers.

Example 4: bootstrap alert

Success! You should read this message.

Tags:

Misc Example