title: Jquery Insert after multiple divs
body: <p>I have an ajax commenting system and that displays the comment submitted below the form when it has been submitted. I have 2 of the same forms on the page in different places, but only the top form is being reset and the comment inserted bellow it. How can I get it to insert after all instances of the form?    </p>
  
  <pre><code>$(".reply").keypress(function(event){
  
  var keycode = (event.keyCode ? event.keyCode : event.which);
  if(keycode == '13'){
       var that    =   this;
  //enter pressed
  
  $.ajax({
      type: 'post',
      url: '/private/poll/reply',
      data: $(this).serialize(), 
      success: function (data) {
       var parent = $(that).find('input[name=parent]').val();
       //  $("#comment_"+parent).append(data);
  
         $(data).insertAfter("#comment_"+parent);
          document.getElementById("form_"+parent).reset();
  
  
  
  }
  });
     }
   });
  </code></pre>