I am using animate in jQuery. I am getting problem to execute animate. It executes after test function I want to run this before test function
$('.next').live('click',function() {
$('.ac_bgimage').animate({
left:"-100em"
}, 15000 );
test();
});
but now when i click on next class my test function execute first , i want to execute later after execution of animate.
try to put it into callback function