How to get height of div before it gets closed?
<p>I want to get the height of a clicked div before it gets closed. I have two div and when i click on the first and then on the other one and then close the first I always get the height of the second and not of that div that i close. Any suggestion on how can i get the height of the div that i close ?</p>

<pre><code>$('.price-list').on('shown.bs.collapse', function () {
        height = $(this).find('.price_list').outerHeight();
});
</code></pre>

<p>and this </p>

<pre><code>$('.price-list').on('hidden.bs.collapse', function () {
  alert(height);
});
</code></pre>