jquery callback after slideUp -
i have code:
$('.somediv').slideup(400); settimeout(function () { somefunction(); }, 400); how rewrite , remove settimeout somefunction becomes call-back function of slideup.
thanks.
method slideup() has callback argument. can with:
$(".somediv").slideup(400, function() { // animation complete. somefunction(); });
Comments
Post a Comment