$$('div.accordion-content button').invoke('observe','click', function(evt){
if(this.up('div').next('.accordion-content')){
this.up('div').hide().next('div.accordion-content').show();
}
});
That script should either appear after the accordion element, or it should be wrapped inside a dom:loaded listener.
Walter
> --
> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
> To post to this group, send email to prototype-s...@googlegroups.com.
> To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
>