title: Javascript newbie question
body: <p>i am using a jquery plugin to upload files, the plugin checks the file dimension and return back the appropriate error message. the error message i am displaying is with this code.</p>
  
  <pre><code>$('#divmsg6').append("&lt;p class = 'red'&gt;Incorrect file dimension, try again&lt;/p&gt;");
  </code></pre>
  
  <p>now if the user keep on trying the error will keep on appending, that's what append is meant for. instead of appending i want my error code to be replaced every time it finds one. what is the js code for that? </p>