Search within TutorialsPark

Twitter Bootstrap Alerts


To create dismissable alert using the Data API and Javascript


Twitter Bootstrap: Dismiss Alerts using Javascript

1. To create a dismissable alert with javascript use method $().alert().

Example: Twitter Bootstrap Alert Javascript $().alert() method

Give it a TRY! »

Twitter Bootstrap: Alert Javascript Method $().alert(close)

1. To close an alert message use Javascript method $.alert('close').

Example:Twitter Bootstrap Alert Javascript method $().alert('close')

Give it a TRY! »

Twitter Bootstrap: Alert Events

Table: Twitter Bootstrap Alert Events .

Event Type Description
close.bs.alert The event is fired immediately when the close instance method is invoked.
closed.bs.alert The event is fired when the alert gets dimissed.

1. The Bootstrap's alert class has two events based on the alert functionality.

Example:Twitter Bootstrap Dismiss Alert Events

Give it a TRY! »