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

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -