jquery not working when i'm not putting it inside a jQuery(document).ready
<pre><code>jQuery(document).ready(function(){
    jQuery(".test").click(function() {
        alert(1);
    });
});
</code></pre>

<p>When I try not to put :</p>

<pre><code>jQuery(".test").click(function() {
            alert(1);
        });
</code></pre>

<p>inside a <code>jQuery(document).ready()</code> it won't work.</p>

<p>What do you think is the cause of that one? I already loaded the custom script that has that function.</p>

<pre><code>&lt;script type="text/javascript" src="/scripts/js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/scripts/js/customScript.js"&gt;&lt;/script&gt;
</code></pre>

<p>Any answer would be appreciated and rewarded.</p>

<p>Thanks!</p>
