On Sep 6, 2006, at 4:30 PM, Lipka, Glen wrote:

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.


Try this: 

     $("a.questionLink").toggle(function(){
            $(this).next('div').slideDown("slow");
        },function(){
            $(this).next('div').slideUp("slow");
        });
        return false;
     });   



Cheers,

Karl


___________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


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

Reply via email to