title: jQuery - append text only once
body: <p>How to append text only once?</p>
  
  <pre><code>$("#dynamic_loan_amount").change(function(){
      var amount = $('#dynamic_loan_amount').val();        
      console.log(amount);
  
      if(amount &gt; 399) {
          $("#precontract").append("&lt;b&gt;Appended text&lt;/b&gt;");
      }
  
      else {
           $("#precontract").empty();
      }
  
  });
  </code></pre>
  
  <p>idea:</p>
  
  <p>use <code>.lenght()</code></p>