JSFiddle - React, Tailwind, and code Playground
by Rapha Souza
HTML
<input class='formContato' type='text' name='orcamentoAssuntoForm' id='orcamentoAssuntoForm' value='Assunto'/>
<div class="produtosIntTitulo margin-top-30" id="demo">Produtodsdsdsdsds teste 1</div>
JavaScript
$(function(){
var valorDaDiv = $(".produtosIntTitulo").text();
$("#orcamentoAssuntoForm").val(valorDaDiv);
});
function myFunction() {
document.getElementById("demo").innerHTML = "Paragraph changed!";
}