javascript: problem with function
<p>I have this simple function:</p>

<pre><code>&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
    jQuery(function($){
        function here(b){alert(b);} ;
        here(6);
    });
//]]&gt;
&lt;/script&gt;
</code></pre>

<p>and i have this button on page:</p>

<pre><code>&lt;button onclick="here(7);"&gt;TEST&lt;/button&gt;
</code></pre>

<p>The alert fires on page load, but not on button click. If i replace the here(7) with alert, it works fine. Why doesnt it work with function though?</p>

<p>Alan</p>
