jquery - how to check parent's parent's id equals -
<ul id="productmenu"> <li> <a ref="#"></a> </li> </ul>
how check if link's parent's parent has got id = "productmenu"? tried prentnode, did not work.
if($(this).closest("ul").attr("id") == "productmenu"){ }