title: How to Properly Add Double Quotes to a Textarea
body: <p>I need a textarea to include a set of double quotes at the start and end of the textarea value. The below code works in that double quotes are added to the start and end of the field, but if the user enters text and then goes back to the field, multiple double quote sets can be added. How can I prevent this? A jQuery solution is also acceptable.</p>
  
  <pre><code>&lt;textarea name="quoteName" id="quoteName" style="width:100%" rows="4" onChange="quotes();" autofocus&gt;&lt;/textarea&gt;
  
  function quotes(){
    var quoteValueBefore = document.getElementById("quoteName").value;
    var ensureQuotes = "\"" + quoteValueBefore + "\"";
    document.getElementById("quoteName").value = ensureQuotes;
  }
  </code></pre>