[jQuery] help needed with new node replace

[jQuery] help needed with new node replace


If anyone knows a jQuery way to replace a node and return the new node
object that would be great (replaceWith returns the old object)