This is probably simple, but I keep messing it up.

 

I have a list of anchor links with hidden divs between them.

I want to put a toggle on all of the <A> links to open up the div which is right next to it.

 

This is the code snippet:

            $("a.questionLink").toggle(function(){

                   $("div.NEXTDIV").slideDown("slow");

               },function(){

                   $("div. NEXTDIV").slideUp("slow");

               });

 

I am not sure if I should use E:first-of-type or next().

Thank you for the help!

 

Glen

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to