fadeOut row and fadeIn as last row
问题 I'm trying to fadeOut a row and fadeIn as the last row in the table, but I can't get the fadeIn to work. Currently I have this: function Test(control) { var row = $(control).parents('tr'); row.find("td").fadeOut('slow', function () { var lastRow = $("#table1 tr:last"); lastRow.after(row).fadeIn('slow'); }); } Even if I leave off fadeIn lastRow.after(row) doesn't seem to be working. 回答1: .after() returns lastRow , not the row you inserted after it like you want, so use .insertAfter() like this