jQuery: does using .html(html) replace current content
<p>When I do something like:</p>

<pre>
<code>$.post("update.php", {page: $(this).attr('data-page')}, function(success){
            $("#dialog").html(html);
        }
});
</code>
</pre>

<p>and I have a :</p>

<pre><code>&lt;div id="dialog" style="display: block;"&gt;

     //a bunch of html in here, initially it's not empty
 &lt;/div&gt;
</code></pre>

<p>Then will that <code>$("#dialog").html(html);</code> replace all the bunch of html that initially we have or does it append to it?</p>
