Wednesday, December 31, 2008

[jQuery] Re: Event callback question

On Wed, Dec 31, 2008 at 11:26 PM, Cam Spiers <camspiers@gmail.com> wrote:
> Hey,
>
> function closeMainPanels(){
> jQuery("div.mainLiner div.panel").each(function(){
> jQuery(this).slideUp(750);
> });
> }
>
> How can I tell when all panels have finished animation?
>
> As I need to call another function when all have finished.
>

slideUp accepts a callback function you could use

http://docs.jquery.com/Effects/slideUp

No comments: