.each jQuery iterator calling a normal function, why not?
<p>I need to use/reuse a external (normal) function into the jQuery.each(), like this:</p>

<pre class="lang-js prettyprint-override"><code>function foo(index,ele){
    if(!($(ele).attr("href")) || $(ele).attr("href") == "") {
        $(ele).addClass("yellow");
    }        
}
// INCORRECT, but WHY??
$("a").each(foo(index,domEle));
</code></pre>

<p><a href="http://jsfiddle.net/zTF22/" rel="nofollow">Here a jsfiddle example</a> with correct and incorrect cases.</p>
