JQuery .hover() functions external
<p>I run into a little problem today. I've a divbox. This divbox should expand if I hover it and should collapse if I leave it. </p>

<p>so I write two functions:</p>

<ol>
<li>function expand(){....};</li>
<li>function collapse(){....};</li>
</ol>

<p>and then i tried to do the hover effect as following:</p>

<pre><code>$('.divboxes').hover(expand(), collapse());
</code></pre>

<p>I thought this will work...but...not.</p>

<p>serveral times I used it like:</p>

<pre><code>$('.divboxes').hover(function(){...},function(){...});
</code></pre>

<p>and it worked...so can someone explain me what I am doing wrong? I want the functions external!</p>

<p>Kind Regards</p>
