Afternoon peoples.
I have a bit of a nightmare walking through a DOM tree. I have the following markup
http:
... And I'm trying to move from input.save in the lower right part of the path to div.node ... This all works well with one copy of the markup, but if I duplicate it (obvisouly change the identifier of the topmost div.node and use jQuery. closest ('div.node') for the top of div.node, it will return the element below it not the element above it (which is correct). I tried using parent (), but there are also some warnings. Is there any is it contexyt that can be attached to the closest one to make it rise rather than down? or is there a better way to do this.
Thanks in advance.
Alex
PS It seems that stackoverflow did something weird for the markup! - I only tested it three times, and this is normal, but for some reason he stated it below
source share