102
rated 0 times
[
104]
[
2]
/ answers: 1 / hits: 66067
/ 14 Years ago, tue, august 3, 2010, 12:00:00
So I want to get the first <a>
tag in this <div>
. This is really driving me nuts. Thanks for any help.
HTML
<div id="PGD" class="album" onmouseover="load(this)">
<a class="dl" href="#">DOWNLOAD</a>
</div>
Javascript
function load(dl)
{
var ID = $(dl).attr('id');
var elemnt = $('ID:first').attr('id');
}
More From » jquery