From e96cc166cd25baae5473b73b6bd8503031f9b7de Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 4 Oct 2011 21:28:45 -0700 Subject: [PATCH] update alerts doc --- javascript.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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.