title: How do I clear a textarea with jquery
body: <p>This question has been answered, but for future reference here is a full example.</p>
  
  <p>You can click the add button and clear button as many times as you want and it will work. But once you type something in the text box, then the clear and and add buttons do not work. </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){
  
      $("#add").click(function(){
  
          $("#box").append("Test, ")
      });
  
      $("#clean").click(function(){
          $("#box").text("")
      });
  
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;button id="add"&gt;ADD&lt;/button&gt;&lt;br/&gt;
  &lt;textarea rows="10" cols="50" id="box"&gt;&lt;/textarea&gt;&lt;br/&gt;
  &lt;button id="clean"&gt;Clear Box&lt;/button&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>