title: getting a value out of show.bs.collapse twitter bootstrap
body: <p>I need to be able to get the href value from the accordion item i just clicked on i assumed this would work (its using twitters collapse plug in)</p>
  
  <p>link:</p>
  
  <pre><code>&lt;a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" class="accorLink"&gt;
  </code></pre>
  
  <p>grab it:</p>
  
  <pre><code>$('#accordion').on('show.bs.collapse', function () {
      console.log('foo');
      var sectionID = $(this).attr("href");
      console.log(sectionID);
  })
  </code></pre>
  
  <p>but its not working and just logging "undefined"</p>
  
  <p>am I able to get a value from it ideally the href</p>