php - how to delete row items and fadeout in ajax jquery

592

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;
784

Answer

Solution:

Why dont you fadeOut the row itself?

row.fadeOut(1000, function() {
    $(this).remove();
});‚Äč

Fiddle - http://jsfiddle.net/J79Ww/

People are also looking for solutions to the problem: php - displays data with a different sign from the database

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.