JSFiddle - React, Tailwind, and code Playground

by wictor

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<input id="temp" type="text" name="temp" value="">
<input id="botao" type="button" value="Enviar">

CSS

#temp{
  opacity: 0;
  filter: alpha(opacity=0);
  width:1px;
  height:1px;
}

JavaScript

$(function(){
	$('#botao').click(function(){
  		$('#temp').val('O que vai fioicar na area de transferenciddda');
      $('#temp').select();
      document.execCommand('copy');
  });
});