jQuery change html on clone
<p>On click I am copying a div. I wish to alter some of the html and then append.</p>

<p>I have tried the following, it will clone and append but I cant seem to alter the html. Not sure what is the best way to handle it, i am sure I have it wrong.</p>

<p>thanks</p>

<pre><code>var htmlStr = $(this).parents(".listingContainer").first();
$htmlStr.find(".saveCompareShow").remove()
$(htmlStr).clone().appendTo('.compareWrapper');                         
</code></pre>
