I've got a setup like the one below. I want to use jQuery to grab each link and display its href right below it. Instead of writing code for each div individually, I'm looking for a solution that works for all divs with the 'col' class, and is versatile enough for future additions...
<div class="col">
<a href="http://google.com">Google</a>
</div>
<div class="col">
<a href="http://yahoo.com">Yahoo!</a>
</div>
<div class="col">
<a href="http://facebook.com">Facebook</a>
</div>
<div class="col">
<a href="http://twitter.com">Twitter</a>
</div>
The desired result is...
<div class="col">
<a href="http://google.com">Google</a>
<span>http://google.com</span>
</div>
<div class="col">
<a href="http://yahoo.com">Yahoo!</a>
<span>http://yahoo.com</span>
</div>
<div class="col">
<a href="http://facebook.com">Facebook</a>
<span>http://facebook.com</span>
</div>
<div class="col">
<a href="http://twitter.com">Twitter</a>
<span>http://twitter.com</span>
</div>
Any suggestions are welcome!