2011-07-22 5 views
0

をスライドした後、URLにリダイレクト:私はこのコードを持っているコンテンツ

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

これは何が行われた後、私はmain.phpするリダイレクトするようにjqueryのを、されて使用して、今起きたい

答えて

2

これがすべきトリックを行う:

$(".removeall").dblclick(function(){ 
    // The slideUp function takes two parameters, a 'speed' for the animation, and 
    // a callback method to be called once the animation is done. 
    $(this).parent().slideUp("fast", function(){ 
     window.location = "/main.php"; 
    }); 
}); 

あなたはslideUp方法hereについての詳細を読むことができます。

+0

ありがとう – re1man

関連する問題