I want to detach a row from a table after a button is clicked. However, I cannot manage to append it back to where it was. I ended up with the code below to detach the row that the "delete" button belongs to:
$(".removeTR").live('click', function (event) {
$(this).closest('tr').fadeTo(400, 0, function () {
$(this).detach();
});
return false;
});
The problem gets more complicated when I need to detach more than one row and then append them all with a "reset" button. Can you please make any suggestions or direct me to the proper logic?