Why doesn't this code work? (2)
<p>This code works as expected:</p>

<pre><code>$(
    function() { 
        $("tr:odd").css("background-color","#dddddd");
    }
)
</code></pre>

<p>And this doesn't:</p>

<pre><code>function temp() {
    $("tr:odd").css("background-color","#dddddd");
}

$(temp());
</code></pre>

<p>Why?</p>
