Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

150
Visualizações
Trying to add and write data in textarea and want it to be reflected in the input field

Here is what I am doing, I am trying to write data and at the same time want to add the data to the input field, but the jquery code I have written is not doing it, something fishy I am doing, anyone can show me a way of doing it.

http://jsfiddle.net/4abeg2rs/

I am initially using an input field and want to disguise the user to write data in textarea because the way it is written is quite complicated if I change the input to replace textarea, my whole code server-side is breaking and I can't figure out why.

$('#input_A').show();
$("#input_B").hide();
$("#input_A").focus();
$('#input_A').html($("#input1").val());
    
$("#input_A").bind("keyup paste", function() {
  $("#input_B").val($(this).val());
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<textarea name="question" id="input_A" style="display:none"> </textarea>
<input class="form-control" type="text" id="input_B" name="question" value="">

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda