title: jquery reset append()
body: <p>How can I reset after append() or before()? Please help. Many thanks in advance.</p>
  
  <pre><code>if((#tag_id).text() == 'something'){
     $(#tag_id).before("x");
  }
  // I want to reset the #tag_id to empty
  $(#tag_id).val(''); // this doesn't work
  </code></pre>