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
Post a Comment