Use this code instead:

$(document).ready(function() {
        $('#foo').find('dd').hide().end().find('dt').click(function() {
                $(this).find('dd').each(function() {
                        if ($(this).is(':visible')) {
                                $(this).slideUp();
                        } else {
                                $(this).slideDown();
                        }
                });
        });
});

As you see in your own code, you are only "toggling" the "next()" element, 
which is the first after the DT, thus the first DD.

Hope this helps, and btw, it could even be in less code, but maybe some other 
peeps could help you with that.

-- Gilles



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to