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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -