Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( "li.selected" ).prev(); //will get you the previous element
- $( "li.selected" ).next(); //will get you the next element
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement