Appending an error message, want to clear the div first
<p>My HTML looks like and js looks like this:</p>

<pre><code>&lt;div class="container"&gt;&lt;/div&gt;

var html = "&lt;div class="error"&gt;hello&lt;/div&gt;";

$(".container").append( $(html) );
</code></pre>

<p>Problem is that I don't clear the html inside the div with class=container first, so I keep appending messages to that area.</p>

<p>How can I clear anything inside of the div class="container" first and THEN append my 'html' div?</p>
