$.document is null
<p>When I open my page, I get error: $.document is null. Why? Secondly, is there any way to determine from which path the below given code is loading the file "filevalues.php"?</p>

<pre><code>&lt;script type="text/javascript"&gt;
try {
    $(document).ready(function(){
    $("#Edit").click(function(){
    $.get('fetchvalues.php', null, function(){
    alert('reached');
});
});
});
}
catch(e)
{
alert(e.message);
}
&lt;/script&gt;
</code></pre>
