-Addadismissbuttonandthe`.alert-dismissible` class, which adds extra padding to the right of the alert and positions the `.close`button.
-Onthedismissbutton,addthe`data-dismiss="alert"` attribute, which triggers the JavaScript functionality. Be sure to use the `<button>`elementwithitforproperbehavioracrossalldevices.
-Toanimatealertswhendismissingthem,besuretoaddthe`.fade` and `.show`classes.
|`$().alert()` | Makes an alert listen for click events on descendant elements which have the `data-dismiss="alert"`attribute.(Notnecessarywhenusingthedata-api'sauto-initialization.)|
|`$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.show`classesarepresentontheelement,thealertwillfadeoutbeforeitisremoved.|