title: How to append into div
body: <p>I'm novice in jquery.
  I want to prepend the value of an input into a new div. The problem is that the new value appears but also disappears immediately.This is the html code:</p>
  
  <pre><code>&lt;form class="form-inline"&gt;
    &lt;input type="text" name="input" value="Add an item here" onfocus="value=''" class="add-item" &gt;
    &lt;button type="submit" class="btn" name="submit"&gt;&lt;img src="img/pipe.png" alt=""&gt;&lt;/button&gt;
  &lt;/form&gt;
  
  &lt;div class="col-lg-12 list"&gt;
                          &lt;div class="list-row"&gt;
                              &lt;div class="trash"&gt;&lt;/div&gt;
                              &lt;div class="list-tag"&gt;
                                   &lt;p&gt;chicken and salt&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="pipe"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="list-row"&gt;
                              &lt;div class="trash"&gt;&lt;/div&gt;
                              &lt;div class="list-tag"&gt;
                                   &lt;p&gt;chicken and salt&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="pipe"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>This is the js:</p>
  
  <pre><code>$('.add-item').keypress(function(event){
          if (event.keyCode === 13) 
          {
          var value = $(this).val();
          var addListItem = $('&lt;div class="trash"&gt;&lt;/div&gt; '+value+' &lt;div class="pipe"&gt;&lt;/div&gt;');
          $('.col-lg-12').prepend(addListItem); 
          }
      });
  </code></pre>
  
  <p>Could you help me what is the problem?</p>