appendTo/prependTo but instead of adding I want to replace the content. htmlTo?
<p>Quick jquery question:<br>
 I know about appendTo and prependTo but is there maybe something like htmlTo? Yeah, I know it sounds silly but instead of adding elements like appendto and prependTo do I want to replace the html. </p>

<pre><code>$("&lt;div&gt;World&lt;/div&gt;").htmlTo($("#Hello"));
</code></pre>

<p>So I want the div with World to replace all the content in the element with id Hello.</p>

<p><strong>Edit:</strong>
Thanks everybody for the answers but I think I wasn't clear. I am chaining a lot of functions onto one element and at the end I clone that element and I want to add it to an other div.</p>

<pre><code>$("#World").hide().clone().htmlTo($("#Hello"));
</code></pre>

<p>Yes, I could just write it the other way around but I would like to only have 1 chain.</p>
