jQuery :FadeOut not working with table Rows

后端 未结 5 2354
臣服心动
臣服心动 2020-12-08 21:03

I have the following HTML table is rendered to my browser.I am creating this table from my ASP.NET codebehind file.

5条回答
  •  臣服心动
    2020-12-08 21:36

    As of jquery 1.6 you can use promises to execute a single callback after all td animations are finished.

    $('td', row).each(function() {
        $(this).fadeOut('slow', 'linear');
    })
    .promise()
    .done(function() {
        $(this).parent('tr').remove();
    });
    

提交回复
热议问题