diff --git a/docs/javascript.html b/docs/javascript.html index 7c92ef06a1..d5aebbacdc 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -718,6 +718,30 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
Closes an alert.
$(".alert-message").alert('close')+
Bootstrap's alert class exposes a few events for hooking into alert functionality.
+Event | +Description | +
---|---|
close | +This event fires immediately when the close instance method is called. |
+
closed | +This event is fired when the alert has been closed (will wait for css transitions to complete). | +
+$('#my-alert').bind('closed', function () { + // do something ... +})