jquery executes declared function without me clicking
<p>i wonder why the browser displays "logged in" without me having clicked on the link i id-tagged with clickhere. it displays it everytime i refreshes the page.</p>

<pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){

    function login(){
       alert("logged in");
    }

    $("#clickhere").click(login());

 });
&lt;/script&gt;
</code></pre>

<p>i just want it to be displayed when i click on the link.</p>

<p>what is the problem?</p>
