Javascript - looking for an alternative to prependTo so that it doesn't add multiple items
<p>I have some code. When it runs correctly, I create a success message and use prependTo in order to display it on the screen. The problem is that when the user does their successful action twice, I end up with two success messages.</p>

<p>Is there a way to overwrite my success message.  Here is how I currently handle it in my code:</p>

<pre><code>  $((is_error ? "&lt;p class=' alert alert-error'&gt;"+message+"&lt;/p&gt;)" : "&lt;p class=' alert alert-success'&gt;"+message+"&lt;/p&gt;")).prependTo("#feedback-container");
</code></pre>

<p>Thanks!</p>
