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.
$('.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
2 matches
Mail list logo