jQuery: Foreach element href?
<p>The title sounds confusing.. but im sure this is possible!</p>

<p>I have one button, <code>(id='downloadAll')</code> and many <code>&lt;a href="..." class="link"&gt;&lt;/a&gt;</code> on my page. What i want to do, for the purpose of finding out how to do this.. is to do something logic like this.</p>

<pre><code>var hrefs = ALL OF THE ELEMENTS WITH CLASS 'link';
foreach(hrefs){
 alert(this.attr('href'));
}
</code></pre>

<p>Basically for each of the elements with a class, i want to get the value of each one... in tern.
Yes, i do have jquery on the page - am hoping to make use of this!</p>

<p>Thanks!</p>
