jQuery wait for event to complete
<p>How can I realize that when I have a function</p>

<pre><code>$('.anyclass').slideToggle(1000);
</code></pre>

<p>that the program exetutes the function test() after the slideToggle completed?</p>

<p>If I write like this:</p>

<pre><code>$('.anyclass').slideToggle(1000);
test();
</code></pre>

<p>...test() gets executed before slideToggle completed.</p>

<p>How can I realize? I don't know jQuery very well ...</p>

<p>Thank you for your help! Regards, Florian</p>

<p>EDIT: Results u can see here: <a href="http://virtual-swiss-hornets.ch" rel="nofollow">www.virtual-swiss-hornets.ch</a></p>
