I understand that you can pass a function to slideUp/slideDown that will run once the transition has completed:
$('li').slideUp({
complete: function(){
alert('done');
}
});
With this HTML an alert is shown 3 times.
<ul>
<li>[content here]</li>
<li>[content here]</li>
<li>[content here]</li>
</ul>
Is there some way to have the complete
function fire only once, when the last list item has completed the slideUp? (fiddle)