jQuery getting new objects
<p>When using jQuery functions like <code>replaceWith</code>, the function return-value is (as clearly documented), the <em>original</em> jQuery object. However, I commonly want to chain with the <em>replacement</em> jQuery object. How do I do this?</p>

<p>For example:</p>

<pre><code>$("#original").replaceWith("&lt;span id='replacement'&gt;&lt;/span&gt;").someFn()
# this calls someFn() on #original, NOT as desired on #replacement.
</code></pre>

<p>What's the nicest way to fix this? Clearly I could do <code>$("#replacement").someFn()</code>, but that's not the point, as (for example) I may not know the id of the replacement element in advance.</p>

<p>NOTE: I'm also interested in feedback about the premise. eg, am I missing the point of jQuery and is there some idiom I'm missing?</p>
