0

i am facing another issue. i want to delete row via ajax and fadeout.

i have write below code. this is successfully deleted the row but do not fadeout.

var parent = $(this).parent().parent();
$.ajax({
                       type: "POST",
                       url: "delete_order.php",
                       data: "id="+id,
                       success: function(){
                       row.find("td").fadeOut(1000, function(){ $(this).parent().remove();});


               }


     });
     return false;
4

1 に答える 1

0

行自体をフェードアウトしないのはなぜですか?

row.fadeOut(1000, function() {
    $(this).remove();
});​

フィドル - http://jsfiddle.net/J79Ww/

于 2012-11-22T07:42:05.217 に答える