How to select one element behind


#1

I know that with $(this).next(), we can select the element right after the current element, but if I want to select an element one element BEHIND my current element? what do I use?


#2

what is the opposite of next? Previous

if i google: jquery previous, i get this:

https://api.jquery.com/prev/

looks very useful. Learn to search, its a good skill to have


#3

This topic was automatically closed after 7 days. New replies are no longer allowed.