title: how to check parent's parent's id equals
body: <pre><code>&lt;ul id="productmenu"&gt;
      &lt;li&gt;
        &lt;a ref="#"&gt;&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>how to check if a link's parent's parent has got an id = "productmenu"? I tried with PrentNode, but it did not work.</p>