Why is $(document).ready not firing for me?
<p>In a php file i have used <code>include</code> to include the following js.php file
and prior to that i have included the jquery file.</p>

<pre><code>&lt;script type="text/javascript"&gt;

$(document).ready(function(){
     alert("hello");
});
&lt;/script&gt;
</code></pre>

<p>But it doesn't work. Why? when I skip the $(document).ready function it works.</p>

<p>But i need jquery code inside. what is wrong?</p>
