Re: [jQuery] Re: Finding next element

2009-12-27 Thread Karl Swedberg
You can't just use .prev() or .next() because the links are within list items. Instead, you'll need to do something like this: $('a.active').parent().prev().find('a') and this: $('a.active').parent().next().find('a') --Karl Karl Swedberg www.englishrules.com www.learningjquery.

[jQuery] Re: Finding next element

2009-12-27 Thread Ami
$('.active').prev() $('.active').next() Rate me please if I helped. On Dec 28, 2:30 am, Toaster wrote: > Hello. > > Example: > > >       >       >       > > > How would I be able to get find the next or previous in relation > to the ? > > I'd appreciate it if anybody could help me out with