Hay, I have some markup like this
<div id="some-id">
<h2><a href="#">Title</a></h2>
</div>
and some jQuery like this
$(this).parent().parent().attr("id")
$(this) is referring to the 'a' tag within the 'h2'
Is there an easier way to select the parent div without using parent() twice. I tried
$(this).parent("div").attr("id")
but it didn't work.
Thanks