Menu
Hi
I been trying to get the outer most element of a child without success and hope somebody here can help me out.
Let’s say I have the following structure:
[code=html]
<div>
Some text
</div>
<div>
<div>
<div>
<img src=”image.png” alt=”image” id=”image”/>
</div>
</div>
</div>
I want to traverse to the element at level 1 from img/@id=image, but I do not know if the div is a child of another element. Eg. I want to get the root to the img element.
Thanks in advance for code/tips,
regards
t