What\'s the easiest way to get the depth of an element in pure JavaScript or jQuery? By \"depth\" I mean how many elements deep is it nested, or how many ancestors does it h
Try something like this:
MooExample moo foo fasoo moasf moosadg moo1 moo412 moo613a