Can I have any way to know which is the depth of a child based on a container. Example:
<div id="dontainer">
<ul>
<li>1</li>
<li>2</li>
<li id="xelement">3</li>
<li>4</li>
<li>5</li>
</ul>
</div>
You should get 2 for "xelement" (taking as starting at 0). Knowing that the "li" are at the same level.
Thanks