boostrap alert auto dismiss code example
Example: bootstrap Alerts Additional content Dismissing
Holy guacamole! You should check in on some of those fields below.
Enable dismissal of an alert via JavaScript:
$('.alert').alert()
$().alert('close')
$().alert()
$().alert('dispose')
Events
close.bs.alert
closed.bs.alert