Reputation: 52047
I have this code:
$('.SomeDiv').slideUp(400);
setTimeout(function () { SomeFunction(); }, 400);
How do I rewrite this and remove the setTimeout
so that SomeFunction
becomes a call-back function of slideUp
.
Upvotes: 17
Views: 21942
Reputation: 61
In fact you can just simply use:
$(".SomeDiv").slideUp(400, CallBackFunction);
Upvotes: 5