Why .first() won't work here?
<p>In the following code, I'm trying to get the value of the first div under "latest", but I keep getting "undefined". I'm expecting the value 5705. This should have worked, right? How do I set this right?</p>

<pre><code>var auto_refresh = setInterval(function()
{
    console.log($('.latest').first().attr('lastValue'));
}, 5000); // refresh every 5 seconds
</code></pre>

<p>The html part: There'll be more divs added here. So 5705 may be 5710 or something else.</p>

<pre><code>&lt;div class="latest"&gt;
&lt;div class="story" lastValue="5705"&gt;Story 5&lt;/div&gt;
&lt;div class="story" lastValue="5704"&gt;Story 4&lt;/div&gt;
&lt;div class="story" lastValue="5703"&gt;Story 3&lt;/div&gt;
&lt;div class="story" lastValue="5702"&gt;Story 2&lt;/div&gt;
&lt;div class="story" lastValue="5701"&gt;Story 1&lt;/div&gt;
&lt;/div&gt;
</code></pre>
