G
guy001
Hi, I'm trying to traverse the DOM in a bit of a non-traditional manner
and am struggling to get my head around it.
Just say i have some elements like so:
A
|-B
|-C
| |-D
|
|-E
Typically, when the DOM is traversed you would get the following order:
ABCDE
What I would like to do is step through one level at a time like so:
A|BCE|D
Any pointers would be greatly appreciated!
and am struggling to get my head around it.
Just say i have some elements like so:
A
|-B
|-C
| |-D
|
|-E
Typically, when the DOM is traversed you would get the following order:
ABCDE
What I would like to do is step through one level at a time like so:
A|BCE|D
Any pointers would be greatly appreciated!