jquery - redirect to a url after sliding up content -


i have code:

$(".removeall").dblclick(function () {                  $(this).parent().slideup();                  }); 

what want happen now, using jquery, redirect main.php after done

this should trick:

$(".removeall").dblclick(function(){     // slideup function takes 2 parameters, 'speed' animation, ,     // callback method called once animation done.     $(this).parent().slideup("fast", function(){         window.location = "/main.php";     }); }); 

you can read more slideup method here.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -