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 回答