the element id is not being accepted a function parameter?
<p>im trying to pass paramaters to a function i.e.</p>

<pre><code> animateDiv(div) {
  .....

}
</code></pre>

<p>this function works, but when i try to pass parameters to it like this, it deosnt work i.e.</p>

<pre><code>$activeToggle.toggle("slow", function(){
            $(this).find(".anime_yellow").each(function (i,e){

            console.log(e.id); // this prints simple
            animateDiv(simple); // this works
            animateDiv(e.id);   //this deosnt work but it prints 'simple' 


         });
</code></pre>

<p>when i pass hardcore values into the function it works i.e. <code>animateDiv(simple)</code> , if i try to put a variable which holds the same thing, it deosnt work <code>animateDiv(e.id)</code>, thanks</p>

<p>the full code is here: <a href="http://jsfiddle.net/Fwhtv/22/" rel="nofollow">http://jsfiddle.net/Fwhtv/22/</a></p>
