jquery traversing an appended to ol/ul
<p>I'm trying to traverse a ul that has been appended to before traversing like so:</p>

<pre><code>var items = [];
$('#list').append('&lt;li id="item_10"&gt;item 10&lt;/li&gt;'); 
$('#list').each(function () {
    var item = $(this).attr('id');
    items.push(item);
});
alert(items.toString());
</code></pre>

<p>But when I alert the output I don't see the item I added. Anyone have a clue on how I can add to a list then traverse it? </p>
