multi callback not requested [solved]

multi callback not requested [solved]

Hi all,

I'm currently working with callback of fadeOut() function.

By using this function, there is a multi selector and of course, the callback is called at each time.

$('#left, #right').fadeOut( function(){ alert('finished!' } );

The problem is that, I don't want 2 alerts but only one when the fadeOut is finished for the two elements.

How can I do that?


Thank you in advance for your help