In the following example: If 5 <li> elements are found, the callback raises a warning 5 times ...
Is there an easy way to find out when the animation is really finished and only fire once ?
$(this).parent().siblings('li').slideUp(500,function(){ alert });
source share