[jQuery] attribute is null

[jQuery] attribute is null


i am wanting to grab the next href attribute from a clicked anchor,
when i use the code below i get everything in between the div next to
the selected one;
var nextHref = $(this).parent("div").next("div").html();
but when i try to get the href i get null.
var nextHref = $(this).parent("div").next("div
a").attr("href");
can anyone tell me what i am doing wrong?
<div style='width: 496px; text-align:left;'><div
style='display:inline;'>
<a class='thickbox' rel='facebox' href='http://robing.co.nz/
jquery/xhibit/display_page.htm' target='_blank' >
<img class='tbImg' src='http://robing.co.nz/snippets/xhibit/
generate_thumbnail.php' alt='' /></a>
</div><div style='display:inline;'>
<a class='thickbox' rel='facebox' href='http://robing.co.nz/
jquery/xhibit/display_page.htm' target='_blank' >
<img class='tbImg' src='http://robing.co.nz/snippets/xhibit/
generate_thumbnail.php' alt='' /></a>
</div>
</div>