title: Find and clear a toast (Toastr)
body: <p>I have a page where there may be multiple <code>toasts</code> added dynamically using the plugin <a href="https://github.com/CodeSeven/toastr" rel="nofollow noreferrer">https://github.com/CodeSeven/toastr</a>.</p>
  
  <p>I have a <code>link</code><strong>(Ok)</strong> on each toast on clicking that link I need to close only the particular <code>toast</code> not all <code>toast</code> that are visible. </p>
  
  <pre><code>toastr.warning("You are warned. &lt;br/&gt; &lt;a id='close-toastr'&gt; Ok &lt;/a&gt;", {
      tapToDismiss: false
      , timeOut: 0
      , extendedTimeOut: 0
      , allowHtml: true
      , preventDuplicates: true
      , preventOpenDuplicates: true
      , newestOnTop: true
  });
  
  $('body').on('click', 'a#close-toastr', function () 
      toastr.clear();
  });
  </code></pre>
  
  <p>In the above code I have used <code>toastr.clear()</code> method which clears all toasts. </p>
  
  <p>Can anyone help me how to identify the <code>toast</code> of the <strong>Ok</strong> <code>link</code> clicked and clear only that toast?</p>
  
  <p><strong>Update #1:</strong></p>
  
  <p>I tried the answer given by @imjosh but, <code>$(this).closest('.toast')</code> finds the correct toast but <code>toastr.clear($(this).closest('.toast'));</code> doesn't close any toast. </p>
  
  <p>If I store the toast <code>object</code> in a variable and pass as an argument to <code>toastr.clear()</code> it works. But, I don't know how to handle multiple toasts this way.</p>
  
  <pre><code>var toast = toastr.warning("You are warned. &lt;br/&gt; &lt;a id='close-toastr'&gt; Ok &lt;/a&gt;", {
      tapToDismiss: false
      , timeOut: 0
      , extendedTimeOut: 0
      , allowHtml: true
      , preventDuplicates: true
      , preventOpenDuplicates: true
      , newestOnTop: true
  });
  
  $('body').on('click', 'a#close-toastr', function () 
      toastr.clear(toast);
  });
  </code></pre>
  
  <p><strong>Update #2:</strong></p>
  
  <p>Sorry, I am using <a href="https://github.com/Foxandxss/angular-toastr" rel="nofollow noreferrer">https://github.com/Foxandxss/angular-toastr</a> plugin not the one I mentioned above.</p>
  
  <p>Thanks.</p>