title: jQuery: get parent, parent id?
body: <pre><code>&lt;ul id ="myList"&gt;
  &lt;li&gt;&lt;a href="www.example.com"&gt;link&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>$(this).parent().attr('id');
  </code></pre>
  
  <p>But it gets the id of the li, I need to go one higher, and I cant attach the click to the li either.</p>