You need to follow a few steps to build a dismissal alert :
First, you have to add a basic alert by creating a wrapper <div> and adding a class of .alert
and one of the four contextual classes.
Also add optional .alert-dismissable
to the above <div>
class.
Next, you have to add a close button.
Finally, use the
<button>
element with the
data-dismiss = “alert”
data attribute.
Example :
<div class="alert alert-success alert-dismissable">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
Free Time Learning is successfully updated !
</div>​