Webunity | Gilles van den Hoven schrieb:
> 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();
>                       }
>               });
>       });
> });
>   
That would only work if the dd elements were childs of the dt elements. 
The sepc allows multiple definition terms followed by multiple defintion 
descriptions. Without some kind of nexts('dd') that is pretty hard to 
express with jQuery. Maybe someone else has an idea how to solve this.

-- Jörn

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

Reply via email to