jQuery Accordion: height problems when using stop() during slideUp/slideDown -is data() a solution?
<p>Good evening everyone! </p>

<p>I'm stuck with my selfmade accordion again. I've got an Accordion, with basically looks like this:</p>

<pre><code>&lt;dl&gt;
&lt;dt&gt; &lt;a href&gt;&lt;/a&gt; &lt;/dt&gt;
&lt;dd&gt; Text &lt;/dd&gt;

&lt;dt&gt; &lt;a href&gt;&lt;/a&gt; &lt;/dt&gt;
&lt;dd&gt; Text &lt;/dd&gt;

&lt;dt&gt; &lt;a href&gt;&lt;/a&gt; &lt;/dt&gt;
&lt;dd&gt; Text &lt;/dd&gt;

&lt;dt&gt; &lt;a href&gt;&lt;/a&gt; &lt;/dt&gt;
&lt;dd&gt; Text &lt;/dd&gt;

&lt;dt&gt; &lt;a href&gt;&lt;/a&gt; &lt;/dt&gt;
&lt;dd&gt; Text &lt;/dd&gt;
&lt;/dl&gt;
</code></pre>

<p>When you click on a link, the previously hidden dd right behind the anchor slidesDown (respectively when another dd is visible, this one slidesUp additionaly and if the dd right behind the anchor is visible, it just slidesUp -in other words: theres only one of the Texts open at the same time). It works pretty well, but now I'm stuck with the following Problem: </p>

<p>When you click multiple times, the animations get queued. </p>

<p>My solution was to use .stop() before the animation starts. Basically that works fine, but this cause an new problem: the height of the Element is locked up at the value the animation is stopped and when I call the animation again, it fades only to this height.   </p>

<p>I searched the web and there seems to be a solution, which looks like this:</p>

<pre><code>$("#elementId").data('origHeight',$("#elementId").height()); 
</code></pre>

<p>This should "store" the original height of the Element and with </p>

<pre><code>$("#elementId").data('origHeight');
</code></pre>

<p>you can readout this value. But I don't get where to put this and how it works, if every slide-Element has a different height. </p>

<p>If anyone can help me out with this or can suggest another way, that would totaly make my night and the next few days </p>
