SyntaxFix
Write A Post
Hire A Developer
Questions
Use this:
$(function(){ $("tr.b_row").each(function(){ var a_href = $(this).find('div.cpt h2 a').attr('href'); alert ("Href is: "+a_href); }); });
See a working demo: http://jsfiddle.net/usmanhalalit/4Ea4k/1/