jQuery :FadeOut not working with table Rows

后端 未结 5 2356
臣服心动
臣服心动 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:47

    There is a problem in jQuery when hiding trs. This is the current workaround until they do something similar in the core, if they decide to.

    row.find("td").fadeOut(1000, function(){ $(this).parent().remove();});
    

    This basically hides the tds in the row, instead of the actual row. Then it removes the row from the DOM. It works in all browsers I believe. You could target IE specifically though if needed.

提交回复
热议问题