Get text from active accordian tab and change on click in jquery
<p>I have an accordian with 5 tabs
I am trying to display the text from the active page. 
When the page is visited the default active does display with the code I have 
but on click it does not trigger change. </p>

<pre><code>    &lt;script&gt;
    $('h2 a.active').change(setDisplayText).on('click', function(e) {
    $('.sub_heading').html($(this).text());
    e.preventDefault();
    }); 
    &lt;/script&gt;
</code></pre>

<p>h2 is in a OL LI span</p>
