Get the parent/ancestor UL
<p>I have a HTML markup that looks like</p>

<pre><code>&lt;ul&gt;
  ...

    &lt;li&gt;
      &lt;ul class="x"&gt;
        ...
        &lt;a href="#"...
</code></pre>

<p>How can I get the parent <code>ul.x</code> element from a click event hooked on the link?</p>

<p><code>this.parentNode</code> works if the UL is the parent element, but if it's one of the ancestors I have to use <code>this.parentNode.parentNode</code> depending on how many parent elements are in between...</p>

<p>Can I somehow get the first UL parent?</p>
