object wont give attr of element
<p>Given an object which stores <code>li</code> elements, I want to find their ids:</p>

<pre><code>$($selected).each(function(){   
    console.log($selected.attr('id'));
        $(this).fadeOut(function(){
            $(this).appendTo($list).removeClass("ui-state-highlight").fadeIn(); 
        });     
    });             
}
</code></pre>

<p>This is only giving me the first. Why?  </p>
