$('table:last-child tr').each(function() { removeLink = $(this).find('a').detach(); // use detach() to "cut" the selected element $(this).find('span').append(removeLink); // paste selected element });
CodePen Example
In this example, I’m moving the first column links into the second column (after the text already in the second column) and replacing the link text with a smiley face.
See the Pen Moving HTML Content Within the Page with jQuery by Mike Doubintchik (@allurewebsolutions) on CodePen.