Clear and add content
<p>I have the following paragraph to which content of array added </p>

<pre><code>$('#pop').html(arr.join('&lt;br&gt;'))
</code></pre>

<p>I want to do like clear and add.</p>

<pre><code>$('#pop').text('').html(arr.join('&lt;br&gt;'))
</code></pre>
