<form id='form1' action="">
    <input type="text">
    <input type="text">
    <textarea name="" id="" cols="30" rows="10"></textarea>
  </form>

  <form id='form2' action="">
    <input type="text" value='form 2 input'>
  </form>
$( document ).ready(function(){ 
  let r = $('#form2').clone(true);  
  $('#form2').remove();
   r.prependTo('#form1');
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js