JSFiddle - React, Tailwind, and code Playground

by musafar006

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<div id="author">
  <input id="book" name="book[]" type="text" />
  <button type="button">
    Add book
  </button>
</div>

CSS

button {
  float: right;
}

JavaScript

$("button").click( function() {
  $( "#book" ).clone().appendTo( "#author" );
});