diff --git a/javascript.html b/javascript.html index 94764df5..b85836b1 100644 --- a/javascript.html +++ b/javascript.html @@ -658,6 +658,25 @@ $('#.tabs').bind('change', function (e) {
$(".alert-message").alert()

Markup

Just add a data-alert attribute to your alert messages to automatically give them close functionality.

+

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
selectorstring'.close'What selector to target for closing an alert.

Methods

$().alert()

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.