title: How to determine which element triggered accordion collapsed event
body: <p>I have an accordion that I fill dynamically using JQuery.
  I would like to start a script specific to each element on trigger.
  I figured easily out how to check for a collapse : </p>
  
  <pre><code>&lt;script&gt;
    $('#accordion').on('show.bs.collapse', function () {
         alert($(this).text());
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>However, in $(this), I have all the accordion and not only the element that collapsed. I can't check for a specific ID as I don't know it</p>