title: Determine currently opened Semantic UI accordion index
body: <p>Trying to figure out how to determine currently open part of Semantic UI accordion (<a href="http://semantic-ui.com/modules/accordion.html" rel="nofollow">http://semantic-ui.com/modules/accordion.html</a>):</p>
  
  <p>This works for jQuery UI Accordion, does not work for Semantic UI:</p>
  
  <p>$("#accordion").accordion('option','active');</p>
  
  <p>Also tried below code, but always returns "1":</p>
  
  <pre><code>    $('#selector').accordion({
          onChange: function() {  
              alert("selected" + $('#selector').index() );
          }
      });
  </code></pre>