On 13 Mag, 01:35, Luciano <[EMAIL PROTECTED]> wrote:
> how i can access classes in my div?
> <div id="box1" class="box">
>      <bloc-top>content top</bloc-top>
>      <bloc-center>content slideToggle</bloc-center>
> </div>
>
> <div id="box2" class="box">
>      <bloc-top>content top</bloc-top>
>      <bloc-center>content slideToggle</bloc-center>
> </div>

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