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

196
Visualizações
I want to create an html input formfield which append with oninput event and this sequence follow in all child input form fields

For example: When I input value in the html formfield1 then formfield2 will be created, when I input value in the formfield2 then formfield3 should be created and so on, but in the below code the form fields didn't work in proper sequence and my typed input values also not show in formfields.

Code:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <div id="fieldvalue">
    <input type="text" oninput=Childfield() />
    </div>

    <script type="text/javascript">
        const Childfield = () => {
            
            let rvalue= '<input type="text" id="fieldvalue" name="" oninput=Childfield() />';
            document.getElementById('fieldvalue').innerHTML += rvalue;
        }
    </script>
</body>
</html> 
about 4 years ago · Juan Pablo Isaza
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