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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -