アンカー タグ内の div タグを選択する方法。次の HTML を検討してください。
<a target="_new" href="https://stackoverflow.com/12.mp4"
data-placement="top" rel="tooltip"
title="Video (MP4)" >
<div class="hidden">Interesting 12</div>
</a>
ビデオ リソースを指すすべてのアンカー タグを選択する必要があります。アンカータグを選択できます。では、その中の部門を選択してテキストを取得するにはどうすればよいですか?
$("a").each(function() {
var link = $(this).attr('href');
if (typeof link == "string" && link.indexOf(".mp4") > 0) {
alert(link);
}
})