I am trying to select the element right BEFORE current element. The current element is a hyperlink which when clicked appends some text to the “target” which is just before the hyperlink.
These controls are in asp:repeater so the same sequence gets repeated over and over and every hyperlink should be able to identify the element just above it.
here is my DOM screenshot

I just need to know how to select the element this way ! thanks
You can use either
previousSibling:JS Fiddle demo.
Or use jQuery’s
prev():JS Fiddle demo.
References:
event.preventDefault().nodeName.prev().previousSibling.