Can i execute the events in sequence in jquery

Posted by Mirage on Stack Overflow See other posts from Stack Overflow or by Mirage
Published on 2010-05-11T04:31:21Z Indexed on 2010/05/11 4:44 UTC
Read the original article Hit count: 117

Filed under:

I am using accordians. I want that if someone click on hyperlink inside the accordion , then that accordion should slide up slowly and only after that the nect accordion falls down or open

 $(".accord").live('click', function(){    

                                         $('#rr1').next().slideUp('slow');                 
                                          $('#rr3').next().slideDown('slow'); 

But i have seen that the other accordion starts opening up at the same time when the other is closing.

It it something related to asynchronous thing. I don't know });

© Stack Overflow or respective owner

Related posts about jQuery