title: Select the next div after the current form on click submit button jQuery
body: <p>I'm trying to get the next div with class <code>comment-replies</code> after the current form and <code>prepend</code> data. There are more divs with the same class on the page and forms.</p>
  
  <pre><code>&lt;div class="hide"&gt;
                  &lt;br&gt;
                  &lt;form action="&lt;?php echo htmlspecialchars($_SERVER["PHP_SELF"],ENT_QUOTES,"utf-8")?&gt;" method="post"&gt;
  
  
              &lt;div class="form-group"&gt;
                  &lt;textarea class="form-control comment" rows="6" name="comment"&gt;&lt;/textarea&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;div class="col-sm-3" style="padding-left: 0px;"&gt;
                      &lt;input hidden class="reply-comment-id" value="23"&gt;
                      &lt;input class="form-control btn-xs add-reply" type="submit" name="reply" value="REPLY"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
              &lt;/div&gt;
  &lt;div class="comment-replies"&gt;
                 &lt;!--replies--&gt;
                 &lt;?php $this-&gt;get_replies($comment['comment_id']); ?&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>jQuery code for the button.</p>
  
  <pre><code>$('.add-reply').on('click', function (e) {
      e.preventDefault();
      var upId = $('#upload-id').val();
      var usId = $('#user-id').val();
      var cId = $(this).prev('input').val();
      var the_form = $(this).closest("form");
      var textComment = the_form.find('textarea[name="comment"]');
      var com = textComment.val();
      $.post('add_comment.php',{cid:cId,upId:upId,usId:usId,reply:com},function(data){
          the_form.nextUntil('div').prepend(data);
      //$('.comment-replies').prepend(data); this append to every div with the current class.
          the_form.addClass('hide');
      });
  
  });
  </code></pre>
  
  <p><a href="https://jsfiddle.net/bhdk9s28/3/" rel="nofollow">example on jsfiddle</a></p>