replace textbox with div with jquery not working
<p>It's just working for a few seconds and then the div disappears again:</p>

<pre><code>$(document).ready(function () {

    $("#done").click(function () {
        $('#txtname').replaceWith(function () {

            return '&lt;div&gt;' + $(this).val() + '&lt;/div&gt;';
        });
    });
</code></pre>
