I have the following structure in my document:
<div id="clientList>
<a href=whatever.php" att="something">Text</a>
<a href=whatever.php" att="something">Text</a>
</div>
Say I want to get all of the links between the div out, how would I do this?
I tried the following:
$('#clientList').children("a").each(function() {
var x = $(this).html();
});
But I don't get the full link, all I get is the "Text" part in between the links. How can I get the full HTML string of each link, including the href and other attributes?