jQuery encourages us to .detach() elements to work with them: http://learn.jquery.com/performance/detach-elements-before-work-with-them/

Here’s a little plugin to help do just that (relies on my .insertAt method found here)…

Usage:

POC: http://jsfiddle.net/moagrius/YmPHB/