Use prev() and next(). Look at the "traversing" section of the docs:
http://docs.jquery.com/Traversing

On Sun, Dec 27, 2009 at 7:30 PM, Toaster <mr.toas...@gmail.com> wrote:
> Hello.
>
> Example:
>
> <ul>
>      <li><a></li>
>      <li><a class="active"></li>
>      <li><a></li>
> </ul>
>
> How would I be able to get find the next or previous <a> in relation
> to the <a class="active">?
>
> I'd appreciate it if anybody could help me out with this. Thanks in
> advance.
>

Reply via email to