I have the following HTML:
<div class="outter">
....
<div class="container" rel="identification" >
<h4> <a href="#" href="www.test.com"> </h4>
</div>
....
</div>
And I have some jquery code that looks like:
$('.outter').delegate('.container a','click', function()
{
//If $(this) is the a element, how can I get the rel attribute of the granfather div?
}
If it is possible without making it dependent with the h4 parent, just in case someday changes for h3, for example.
1 Answer