How to get title attribute for each a href and put as span?
<p>Hi I am trying to get the title attribute of each a href in jQuery and put it as a span and have done something like this:</p>

<pre><code>$('.menu li').each(function(){
    var title = $('.menu li a').attr("title");
    $(".menu li a span").text(title);
});
</code></pre>

<p>Each link has a different title attribute added too it but its applying the first title attribute to every span, am I missing something? </p>

<p>thanks</p>
