I have some table rows
6条回答 长发绾君心 (楼主) 2021-02-12 14:02 add a reference to this, which refers to your b_row: $("tr.b_row").each(function(){ var a_href = $( this ).find('div.cpt h2 a').attr('href'); alert ("Href is: "+a_href); }); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
add a reference to this, which refers to your b_row:
this
b_row
$("tr.b_row").each(function(){ var a_href = $( this ).find('div.cpt h2 a').attr('href'); alert ("Href is: "+a_href); });