Emulate jQuery .detach() in older version?
<p>I'm using jQuery 1.3.2 and currently I'm not in a position where I can hope for an upgrade. Consider this code that works in 1.4.2:</p>

<pre><code>var some_elem = $('#some_element');
var other_elem = $('#other_element');
some_elem.detach();
other_elem.replaceWith(some_elem);
</code></pre>

<p>How should I rewrite this code to make it work in jQuery 1.3.2? It doesn't implement the <code>.detach()</code> method.</p>
