title: notifyjs - hide notification from elsewhere
body: <p>I am using <a href="http://notifyjs.com/" rel="nofollow">notifyjs</a> for some notifications.  I notice that <code>.notify(...)</code> returns an element, not an object I can use to manipulate the notification.  How can I hide the notification from an external event, such as clicking a button?</p>
  
  <p>Is it possible to somehow inject an element ID or class name into the notification, so I can select it later using jQuery?  Right now all I see is:</p>
  
  <pre><code>&lt;div class="notifyjs-wrapper"&gt;
      &lt;div class="notifyjs-arrow" style="..."&gt;&lt;/div&gt;
      &lt;div class="notifyjs-container" style="..."&gt;
          &lt;div class="notifyjs-bootstrap-base notifyjs-bootstrap-info"&gt;
              &lt;span data-notify-text=""&gt;No Pick Tickets To Create&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>There's nothing specific I can use to later identity the notification.  Following one of the examples on the <a href="http://notifyjs.com/" rel="nofollow">notifyjs</a> page, I attempted:</p>
  
  <pre><code>$('#elem').notify({
      title: $('&lt;div id="foobar"&gt;&lt;/div&gt;').text("the message")
  }, { 
      ... 
  });
  </code></pre>
  
  <p>But this results in a broken notification.  </p>