alert via JavaScript:</p>
   <pre class="prettyprint linenums">$(".alert").alert()</pre>

   <h3>Markup</h3>
   <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
   <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>

   <h3>Methods</h3>
   <h4>$().alert()</h4>
   <p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have 