Hi Experts,
I want to access parents' parent node using dom scripting. For example I am having one div & it contains one p tag like this
<div id ='somediv'><p><a href='' onclick='accessParentTag();'>sample link</a></p>
Now I want to access the tag div on clicking link. As we can access parent node using this.parentNode so it will give me p tag but I want to access its parent tag that is div.
How can I access it? Please help me.
Thanks in advance.