Fork me on GitHub

Alert

I’m sorry, but the princess is in another castle!
<div id="myAlert" class="alert alert-danger">
    I’m sorry, but the princess is in another castle!
</div>
YUI().use(
  'aui-alert',
  function(Y) {
    new Y.Alert(
      {
        closeable: true,
        render: true,
        srcNode: '#myAlert'
      }
    );
  }
);