I wonder if you're looking for 'filter' instead of 'next'?

$('.bloc-top').click(function(){
  $(this).filter('.bloc-center').slideToggle('slow');
});


> looking at your code, the action is something like this:
> "when the user clicks on a bloc-top element, slide-toggle the next
> bloc-center element"
> right? this is done in jQuery like this (assuming bloc-top and bloc-
> center are classes):
>
> $('.bloc-top').click(function(){
>     $(this).next('.bloc-center').slideToggle('slow');
>
> });
>
> :)

Reply via email to