how to retreive value from div
<p>here is my html and jquery and when the page loads i'm supposed to get an alert box with the value 10 but instead i get nothing. what am i doing wrong?</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;script src="js/jquery-1.4.4.min.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;

    val = $("#t").text();
    alert(val);

    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;div id="t"&gt;10&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
