<ul id ="myList">
<li><a href="www.example.com">link</a></li>
</ul>
How can I get the id of the ul (myList) using jQuery? My j-script event is triggered when the a link is clicked. I have tried:
$(this).parent().attr('id');
But it gets the id of the li, I need to go one higher, and I cant attach the click to the li either.