jQuery - Get the href attribute for each link in a section of HTML
<p>I've written the following jQuery to loop through each of the <code>&lt;a&gt;</code> objects in a section of HTML:</p>

<pre><code>$(".chapterindex" + key + " div.link a").each(

    function(intIndex){
        alert( "Numbered index: " + intIndex );
    });
});
</code></pre>

<p>The key value used in the first line of the jQuery is from an array of URL's I've built manually, something like this:</p>

<pre><code>var chapters = new Array();
chapters[0] = "original/html/0/ID0EFJAE.html";
</code></pre>

<p>I can alert the <code>intIndex</code> which gives me, <code>0,1,2,3,4,5....</code> etc..</p>

<p>But how can I extend the jQuery above to get the <code>href</code> attribute from each of the links found in the HTML?</p>
