[jQuery] Selector Help
[jQuery] Selector Help
Code:
<fieldset>
<a href="" class="link"></a>
</fieldset>
<fieldset>
<a href="" class="link"></a>
</fieldset>
<fieldset>
<a href="" class="link"></a>
</fieldset>
When a link is clicked, I would like to be able to reference the
particular parent fieldset element, and not all of them.
Something like this doesn't work:
$('.link').click(function () {
$(this+':parent').BLAHBLAHBLAH();
});
Thanks in advance, the help here is top notch!